WordPress.org

Make WordPress Core

Changeset 14422


Ignore:
Timestamp:
05/03/10 23:04:42 (4 years ago)
Author:
ryan
Message:

User deletion fixes. Props yoavf. fixes #13242

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r14261 r14422  
    452452    } 
    453453 
     454    clean_user_cache($id); 
     455 
    454456    // FINALLY, delete user 
    455457    if ( !is_multisite() ) { 
     
    460462        $wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = $id AND meta_key = '{$level_key}'"); 
    461463    } 
    462  
    463     clean_user_cache($id); 
    464464 
    465465    // allow for commit transaction 
  • trunk/wp-admin/users.php

    r14315 r14422  
    103103            if ( current_user_can('delete_user', $id) ) 
    104104                wp_delete_user($id); 
     105            break; 
    105106        case 'reassign': 
    106107            if ( current_user_can('delete_user', $id) ) 
Note: See TracChangeset for help on using the changeset viewer.