WordPress.org

Make WordPress Core

Changeset 20523


Ignore:
Timestamp:
04/18/12 21:24:53 (2 years ago)
Author:
duck_
Message:

clean_user_cache() after the DELETE query in wp_delete_user(). See #20460.

This is to prevent plugins managing to hook in between the cache cleaning and the actual deletion.

File:
1 edited

Legend:

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

    r20522 r20523  
    264264    } 
    265265 
    266     clean_user_cache( $user ); 
    267  
    268266    // FINALLY, delete user 
    269267    if ( !is_multisite() ) { 
     
    274272        $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $id , 'meta_key' => $level_key ) ); 
    275273    } 
     274 
     275    clean_user_cache( $user ); 
    276276 
    277277    // allow for commit transaction 
Note: See TracChangeset for help on using the changeset viewer.