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:
Ryan Boren 2010-05-15 14:43:13 +00:00
parent afc24755fc
commit bdc57b2b3f
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}