741 | | if ( ($category->cat_ID != $default_cat_id) && ($category->cat_ID != $default_link_cat_id) ) |
742 | | $edit .= "<td><a href='" . wp_nonce_url("categories.php?action=delete&cat_ID=$category->cat_ID", 'delete-category_' . $category->cat_ID ) . "' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s".\\nAll of its posts will go into the default category of "%s"\\nAll of its bookmarks will go into the default category of "%s".\\n"OK" to delete, "Cancel" to stop."), js_escape($category->cat_name), js_escape(get_catname($default_cat_id)), js_escape(get_catname($default_link_cat_id))) . "' );\" class='delete'>".__('Delete')."</a>"; |
743 | | else |
744 | | $edit .= "<td style='text-align:center'>".__("Default"); |
745 | | } else |
| 741 | if (($category->cat_ID == $default_post_cat_id) && ($category->cat_ID == $default_link_cat_id)) { |
| 742 | $edit .= "<td style='text-align:center'>".__("Default posts and links category"); |
| 743 | } elseif ($category->cat_ID == $default_post_cat_id) { |
| 744 | $edit .= "<td style='text-align:center'>".__("Default posts category"); |
| 745 | } elseif ($category->cat_ID == $default_link_cat_id) { |
| 746 | $edit .= "<td style='text-align:center'>".__("Default links category"); |
| 747 | } else { |
| 748 | $edit .= "<td style='text-align:center'><a href='" . wp_nonce_url("categories.php?action=delete&cat_ID=$category->cat_ID", 'delete-category_' . $category->cat_ID ) . "' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s".\\nAll of its posts will go into the default category of "%s"\\nAll of its bookmarks will go into the default category of "%s".\\n"OK" to delete, "Cancel" to stop."), js_escape($category->cat_name), js_escape(get_catname($default_post_cat_id)), js_escape(get_catname($default_link_cat_id))) . "' );\" class='delete'>".__('Delete')."</a>"; |
| 749 | } |
| 750 | } else { |