From fc8d91a072f5f8eb1a90793ce0464c4134435c2a Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sat, 1 Apr 2006 05:27:10 +0000 Subject: [PATCH] More informative delete category dialog. Because knowing is half the battle. Props westi and mdawaffe. fixes #2617 git-svn-id: https://develop.svn.wordpress.org/trunk@3672 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 6abfd57135..f8abec8646 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -634,7 +634,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { $default_link_cat_id = get_option('default_link_category'); if ( ($category->cat_ID != $default_cat_id) && ($category->cat_ID != $default_link_cat_id) ) - $edit .= "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').""; + $edit .= "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."), addslashes($category->cat_name), addslashes(wp_specialchars(get_catname($default_cat_id),'double')), addslashes(wp_specialchars(get_catname($default_link_cat_id),'double')))."' );\" class='delete'>".__('Delete').""; else $edit .= "".__("Default"); }