WordPress.org

Make WordPress Core

Changeset 3270


Ignore:
Timestamp:
12/05/2005 05:17:28 AM (12 years ago)
Author:
ryan
Message:

Delete user's usermeta when deleting the user.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-db.php

    r3254 r3270  
    239239    // FINALLY, delete user
    240240    $wpdb->query("DELETE FROM $wpdb->users WHERE ID = $id");
     241    $wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = '$id'");
    241242
    242243    wp_cache_delete($id, 'users');
Note: See TracChangeset for help on using the changeset viewer.