wpmu_delete_user() should actually delete the user. Fixes #20792.

User meta is removed by delete_metadata_by_mid() already.


git-svn-id: http://core.svn.wordpress.org/trunk@20952 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-05-30 16:14:57 +00:00
parent 77cd1c3682
commit e506b3eaee
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ function wpmu_delete_user( $id ) {
foreach ( $meta as $mid ) foreach ( $meta as $mid )
delete_metadata_by_mid( 'user', $mid ); delete_metadata_by_mid( 'user', $mid );
$wpdb->delete( $wpdb->usermeta, array( 'user_id' => $id ) ); $wpdb->delete( $wpdb->users, array( 'ID' => $id ) );
clean_user_cache( $user ); clean_user_cache( $user );