From c352f4cad823304275841916599d69aa9b19863d Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 18 May 2006 00:47:21 +0000 Subject: [PATCH] Nonce fixes from mdawaffe. #2678 git-svn-id: https://develop.svn.wordpress.org/trunk@3778 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/admin-functions.php | 2 +- wp-admin/edit-form-advanced.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 1291898308..1e1c6ed36b 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -656,7 +656,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".\\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').""; + $edit .= "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."), addslashes($category->cat_name), js_escape(get_catname($default_cat_id)), js_escape(get_catname($default_link_cat_id))) . "' );\" class='delete'>".__('Delete').""; else $edit .= "".__("Default"); } diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index b6ea6adf0c..0a79505b44 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -220,8 +220,8 @@ list_meta($metadata); - -post_title) ) . "')\""; ?> /> + +post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}\""; ?> />