Use the remove_user cap instead of delete_user. fixes #13325
git-svn-id: http://svn.automattic.com/wordpress/trunk@14664 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7162ca097e
commit
9d5b96bb30
|
@ -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