From b4affc06406e91aac410aec654761ecb5eaed3a7 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 26 May 2006 23:31:24 +0000 Subject: [PATCH] Update nonce action strings. Props mdawaffe. git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@3805 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-functions.php | 4 ++-- wp-admin/categories.php | 4 ++-- wp-admin/edit-comments.php | 2 +- wp-admin/edit-form-advanced.php | 4 ++-- wp-admin/edit-link-form.php | 2 +- wp-admin/edit-page-form.php | 2 +- wp-admin/edit-pages.php | 2 +- wp-admin/edit.php | 8 ++++---- wp-admin/link-categories.php | 8 ++++---- wp-admin/link-manager.php | 2 +- wp-admin/plugin-editor.php | 4 ++-- wp-admin/plugins.php | 8 ++++---- wp-admin/post.php | 14 +++++++------- wp-admin/profile-update.php | 2 +- wp-admin/profile.php | 2 +- wp-admin/templates.php | 4 ++-- wp-admin/theme-editor.php | 4 ++-- wp-admin/themes.php | 4 ++-- wp-admin/user-edit.php | 4 ++-- 19 files changed, 42 insertions(+), 42 deletions(-) diff --git a/wp-admin/admin-functions.php b/wp-admin/admin-functions.php index 85be0c30eb..83cf5171a1 100644 --- a/wp-admin/admin-functions.php +++ b/wp-admin/admin-functions.php @@ -599,7 +599,7 @@ function cat_rows($parent = 0, $level = 0, $categories = 0) { $default_cat_id = get_option('default_category'); if ($category->cat_ID != $default_cat_id) - $edit .= "cat_ID ) . "' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s". All of its posts will go to the default category.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars($category->cat_name, 1))."' );\" class='delete'>".__('Delete').""; + $edit .= "cat_ID ) . "' onclick=\"return deleteSomething( 'cat', $category->cat_ID, '" . sprintf(__("You are about to delete the category "%s". All of its posts will go to the default category.\\n"OK" to delete, "Cancel" to stop."), wp_specialchars($category->cat_name, 1))."' );\" class='delete'>".__('Delete').""; else $edit .= "".__("Default"); } @@ -643,7 +643,7 @@ function page_rows($parent = 0, $level = 0, $pages = 0) { post_modified); ?> " . __('Edit') . ""; } ?> - " . __('Delete') . ""; } ?> + " . __('Delete') . ""; } ?> comment_post_ID) ) { echo " | comment_ID."\">" . __('Edit Comment') . ""; - echo ' | " . __('Delete Comment') . ' '; + echo ' | " . __('Delete Comment') . ' '; } // end if any comments to show // Get post title if ( current_user_can('edit_post', $comment->comment_post_ID) ) { diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php index 755fd7a462..0b18f3955a 100644 --- a/wp-admin/edit-form-advanced.php +++ b/wp-admin/edit-form-advanced.php @@ -26,7 +26,7 @@ if (0 == $post_ID) { } else { $form_action = 'editpost'; $form_extra = ""; - wp_nonce_field('update-post' . $post_ID); + wp_nonce_field('update-post_' . $post_ID); } $form_pingback = ''; @@ -266,7 +266,7 @@ if($metadata = has_meta($post_ID)) { - + post_title) ) . "') ) { document.forms.post._wpnonce.value = '$delete_nonce'; return true;}\""; ?> /> diff --git a/wp-admin/edit-link-form.php b/wp-admin/edit-link-form.php index 6d4d71ebf2..558d32d686 100644 --- a/wp-admin/edit-link-form.php +++ b/wp-admin/edit-link-form.php @@ -4,7 +4,7 @@ if ( ! empty($link_id) ) { $heading = __('Edit a link:'); $submit_text = __('Save Changes »'); $form = '