Skip to content
Browse files

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
  • Loading branch information...
1 parent 77cd1c3 commit e506b3eaee48884f622fe1d6e1039bec74021cd4 duck_ committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 wp-admin/includes/ms.php
View
2 wp-admin/includes/ms.php
@@ -164,7 +164,7 @@ function wpmu_delete_user( $id ) {
foreach ( $meta as $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 );

0 comments on commit e506b3e

Please sign in to comment.
Something went wrong with that request. Please try again.