Changeset 20522 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 04/18/2012 09:07:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r20289 r20522 133 133 134 134 $id = (int) $id; 135 $user = new WP_User( $id ); 135 136 136 137 do_action( 'wpmu_delete_user', $id ); … … 163 164 $wpdb->delete( $wpdb->usermeta, array( 'user_id' => $id ) ); 164 165 165 clean_user_cache( $ id);166 clean_user_cache( $user ); 166 167 167 168 // allow for commit transaction … … 390 391 $wpdb->update( $wpdb->users, array( $pref => $value ), array( 'ID' => $id ) ); 391 392 392 clean_user_cache( $id ); 393 $user = new WP_User( $id ); 394 clean_user_cache( $user ); 393 395 394 396 if ( $pref == 'spam' ) { … … 408 410 return false; 409 411 410 clean_user_cache( $ id);412 clean_user_cache( $user ); 411 413 412 414 return $id;
Note: See TracChangeset
for help on using the changeset viewer.