WordPress.org

Make WordPress Core

Changeset 4020


Ignore:
Timestamp:
07/17/2006 05:12:37 PM (14 years ago)
Author:
ryan
Message:

Relocate delete_user action. Props filosofo. fixes #2956

File:
1 edited

Legend:

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

    r3849 r4020  
    267267
    268268    // FINALLY, delete user
     269    do_action('delete_user', $id);
     270
    269271    $wpdb->query("DELETE FROM $wpdb->users WHERE ID = $id");
    270272    $wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = '$id'");
     
    272274    wp_cache_delete($id, 'users');
    273275    wp_cache_delete($user->user_login, 'userlogins');
    274 
    275     do_action('delete_user', $id);
    276276
    277277    return true;
Note: See TracChangeset for help on using the changeset viewer.