WordPress.org

Make WordPress Core

Ticket #20792: 20792.diff

File 20792.diff, 434 bytes (added by duck_, 23 months ago)
  • wp-admin/includes/ms.php

     
    164164        foreach ( $meta as $mid ) 
    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 ); 
    170170