User deletion fixes. Props yoavf. fixes #13242

git-svn-id: https://develop.svn.wordpress.org/trunk@14422 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2010-05-03 23:04:42 +00:00
parent 01822efabb
commit 172c975f2d
2 changed files with 3 additions and 2 deletions

View File

@@ -102,6 +102,7 @@ case 'dodelete':
case 'delete':
if ( current_user_can('delete_user', $id) )
wp_delete_user($id);
break;
case 'reassign':
if ( current_user_can('delete_user', $id) )
wp_delete_user($id, $_REQUEST['reassign_user']);