diff --git a/wp-admin/plugins.php b/wp-admin/plugins.php
index 521a5d1f8b..f17f26a2b7 100644
--- a/wp-admin/plugins.php
+++ b/wp-admin/plugins.php
@@ -3,7 +3,7 @@ require_once('admin.php');
if ( isset($_GET['action']) ) {
if ('activate' == $_GET['action']) {
- check_admin_referer('activate-plugin' . $_GET['plugin']);
+ check_admin_referer('activate-plugin_' . $_GET['plugin']);
$current = get_settings('active_plugins');
if (!in_array($_GET['plugin'], $current)) {
$current[] = trim( $_GET['plugin'] );
@@ -14,7 +14,7 @@ if ( isset($_GET['action']) ) {
}
header('Location: plugins.php?activate=true');
} else if ('deactivate' == $_GET['action']) {
- check_admin_referer('deactivate-plugin' . $_GET['plugin']);
+ check_admin_referer('deactivate-plugin_' . $_GET['plugin']);
$current = get_settings('active_plugins');
array_splice($current, array_search( $_GET['plugin'], $current), 1 ); // Array-fu!
update_option('active_plugins', $current);
@@ -98,11 +98,11 @@ if (empty($plugins)) {
$style = ('class="alternate"' == $style|| 'class="alternate active"' == $style) ? '' : 'alternate';
if (!empty($current_plugins) && in_array($plugin_file, $current_plugins)) {
- $action = "
".__('Deactivate')."";
+ $action = "
".__('Deactivate')."";
$plugin_data['Title'] = "
{$plugin_data['Title']}";
$style .= $style == 'alternate' ? ' active' : 'active';
} else {
- $action = "
".__('Activate')."";
+ $action = "
".__('Activate')."";
}
$plugin_data['Description'] = wp_kses($plugin_data['Description'], array('a' => array('href' => array(),'title' => array()),'abbr' => array('title' => array()),'acronym' => array('title' => array()),'code' => array(),'em' => array(),'strong' => array()) ); ;
if ($style != '') $style = 'class="' . $style . '"';
diff --git a/wp-admin/post.php b/wp-admin/post.php
index 27877ad828..f639a5fd2e 100644
--- a/wp-admin/post.php
+++ b/wp-admin/post.php
@@ -89,7 +89,7 @@ case 'edit':
case 'editattachment':
$post_id = (int) $_POST['post_ID'];
- check_admin_referer('update-attachment' . $post_id);
+ check_admin_referer('update-attachment_' . $post_id);
// Don't let these be changed
unset($_POST['guid']);
@@ -106,7 +106,7 @@ case 'editattachment':
case 'editpost':
$post_ID = (int) $_POST['post_ID'];
- check_admin_referer('update-post' . $post_ID);
+ check_admin_referer('update-post_' . $post_ID);
$post_ID = edit_post();
@@ -132,7 +132,7 @@ case 'editpost':
case 'delete':
$post_id = (isset($_GET['post'])) ? intval($_GET['post']) : intval($_POST['post_ID']);
- check_admin_referer('delete-post' . $post_id);
+ check_admin_referer('delete-post_' . $post_id);
$post = & get_post($post_id);
@@ -213,7 +213,7 @@ case 'confirmdeletecomment':
case 'deletecomment':
$comment = (int) $_GET['comment'];
- check_admin_referer('delete-comment' . $comment);
+ check_admin_referer('delete-comment_' . $comment);
$p = (int) $_GET['p'];
if (isset($_GET['noredir'])) {
@@ -243,7 +243,7 @@ case 'deletecomment':
case 'unapprovecomment':
$comment = (int) $_GET['comment'];
- check_admin_referer('unapprove-comment' . $comment);
+ check_admin_referer('unapprove-comment_' . $comment);
$p = (int) $_GET['p'];
if (isset($_GET['noredir'])) {
@@ -270,7 +270,7 @@ case 'unapprovecomment':
case 'mailapprovecomment':
$comment = (int) $_GET['comment'];
- check_admin_referer('approve-comment' . $comment);
+ check_admin_referer('approve-comment_' . $comment);
if ( ! $comment = get_comment($comment) )
die(sprintf(__('Oops, no comment with this ID.
Go back!'), 'edit.php'));
@@ -290,7 +290,7 @@ case 'mailapprovecomment':
case 'approvecomment':
$comment = (int) $_GET['comment'];
- check_admin_referer('approve-comment' . $comment);
+ check_admin_referer('approve-comment_' . $comment);
$p = (int) $_GET['p'];
if (isset($_GET['noredir'])) {
diff --git a/wp-admin/profile-update.php b/wp-admin/profile-update.php
index 20fd95eea3..90913dfb43 100644
--- a/wp-admin/profile-update.php
+++ b/wp-admin/profile-update.php
@@ -2,7 +2,7 @@
require_once('admin.php');
-check_admin_referer('update-profile' . $user_ID);
+check_admin_referer('update-profile_' . $user_ID);
if ( !$_POST )
die( __('No post?') );
diff --git a/wp-admin/profile.php b/wp-admin/profile.php
index 5b5f074124..04f2fc492c 100644
--- a/wp-admin/profile.php
+++ b/wp-admin/profile.php
@@ -19,7 +19,7 @@ $bookmarklet_height= 440;