WordPress.org

Make WordPress Core

Changeset 20952


Ignore:
Timestamp:
05/30/12 16:14:57 (23 months ago)
Author:
duck_
Message:

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

User meta is removed by delete_metadata_by_mid() already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r20581 r20952  
    165165        delete_metadata_by_mid( 'user', $mid ); 
    166166 
    167     $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $id ) ); 
     167    $wpdb->delete( $wpdb->users, array( 'ID' => $id ) ); 
    168168 
    169169    clean_user_cache( $user ); 
Note: See TracChangeset for help on using the changeset viewer.