Message info
 
To:wp-svn@lists.automattic.com From:m@wordpress.org Subject:[wp-svn] [20952] trunk/wp-admin/includes/ms.php: wpmu_delete_user() should actually delete the user. Date:Wed, 30 May 2012 16:14:57 +0000 (UTC)
 

Revision
20952
Author
duck_
Date
2012-05-30 16:14:57 +0000 (Wed, 30 May 2012)

Log Message

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

User meta is removed by delete_metadata_by_mid() already.

Modified Paths

Diff

Modified: trunk/wp-admin/includes/ms.php (20951 => 20952)


--- trunk/wp-admin/includes/ms.php	2012-05-29 18:50:47 UTC (rev 20951)
+++ trunk/wp-admin/includes/ms.php	2012-05-30 16:14:57 UTC (rev 20952)
@@ -164,7 +164,7 @@
 	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 );