Use the remove_user cap instead of delete_user. fixes #13325
git-svn-id: https://develop.svn.wordpress.org/trunk@14664 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
afc24755fc
commit
bdc57b2b3f
@ -212,7 +212,7 @@ case 'doremove':
|
||||
$update = 'err_admin_remove';
|
||||
continue;
|
||||
}
|
||||
if ( !current_user_can('delete_user', $id) ) {
|
||||
if ( !current_user_can('remove_user', $id) ) {
|
||||
$update = 'err_admin_remove';
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user