Ticket #2617: 2617.diff
| File 2617.diff, 1.4 KB (added by , 20 years ago) |
|---|
-
wp-admin/admin-functions.php
634 634 $default_link_cat_id = get_option('default_link_category'); 635 635 636 636 if ( ($category->cat_ID != $default_cat_id) && ($category->cat_ID != $default_link_cat_id) ) 637 $edit .= "<td><a href='categories.php?action=delete&cat_ID=$category->cat_ID' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '".sprintf(__("You are about to delete the category "%s". All of its posts and bookmarks will go to the default categories.\\n"OK" to delete, "Cancel" to stop."), addslashes($category->cat_name))."' );\" class='delete'>".__('Delete')."</a>";637 $edit .= "<td><a href='categories.php?action=delete&cat_ID=$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 "".get_catname($default_cat_id).""\\nAll of its bookmarks will go into the default category of "".get_catname($default_link_cat_id)."".\\n"OK" to delete, "Cancel" to stop."), addslashes($category->cat_name))."' );\" class='delete'>".__('Delete')."</a>"; 638 638 else 639 639 $edit .= "<td style='text-align:center'>".__("Default"); 640 640 }