mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
Edit and Delete links for users. see #7552
git-svn-id: https://develop.svn.wordpress.org/trunk@8916 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -114,7 +114,7 @@ case 'delete':
|
||||
|
||||
check_admin_referer('bulk-users');
|
||||
|
||||
if ( empty($_REQUEST['users']) ) {
|
||||
if ( empty($_REQUEST['users']) && empty($_REQUEST['user']) ) {
|
||||
wp_redirect($redirect);
|
||||
exit();
|
||||
}
|
||||
@@ -122,7 +122,10 @@ case 'delete':
|
||||
if ( !current_user_can('delete_users') )
|
||||
$errors = new WP_Error('edit_users', __('You can’t delete users.'));
|
||||
|
||||
$userids = $_REQUEST['users'];
|
||||
if ( empty($_REQUEST['users']) )
|
||||
$userids = array(intval($_REQUEST['user']));
|
||||
else
|
||||
$userids = $_REQUEST['users'];
|
||||
|
||||
include ('admin-header.php');
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user