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:
ryan 2010-05-15 14:43:13 +00:00
parent 7162ca097e
commit 9d5b96bb30
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;
}