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:
Ryan Boren
2008-09-17 04:39:08 +00:00
parent 97b4987f47
commit dfa62d5a86
2 changed files with 20 additions and 7 deletions

View File

@@ -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');
?>