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:
parent
77cd1c3682
commit
e506b3eaee
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue