mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Update nonce action strings. Props mdawaffe.
git-svn-id: https://develop.svn.wordpress.org/trunk@3804 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -32,7 +32,7 @@ break;
|
||||
|
||||
case 'update':
|
||||
|
||||
check_admin_referer('update-user' . $user_id);
|
||||
check_admin_referer('update-user_' . $user_id);
|
||||
|
||||
if (!current_user_can('edit_users'))
|
||||
$errors = new WP_Error('head', __('You do not have permission to edit this user.'));
|
||||
@@ -74,7 +74,7 @@ if (!current_user_can('edit_users'))
|
||||
<h2><?php _e('Edit User'); ?></h2>
|
||||
|
||||
<form name="profile" id="your-profile" action="user-edit.php" method="post">
|
||||
<?php wp_nonce_field('update-user' . $user_ID) ?>
|
||||
<?php wp_nonce_field('update-user_' . $user_ID) ?>
|
||||
<p>
|
||||
<input type="hidden" name="from" value="profile" />
|
||||
<input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" />
|
||||
|
||||
Reference in New Issue
Block a user