Ticket #11254: small_patch.diff
File small_patch.diff, 1.2 KB (added by , 14 years ago) |
---|
-
wp-includes/user.php
1282 1282 wp_cache_delete($user->user_email, 'useremail'); 1283 1283 wp_cache_delete($user->user_nicename, 'userslugs'); 1284 1284 wp_cache_delete('blogs_of_user-' . $id, 'users'); 1285 $GLOBALS['current_user'] = new WP_User($id); 1285 1286 } 1286 1287 1287 1288 /** -
wp-includes/deprecated.php
2296 2296 else 2297 2297 $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d AND meta_key = %s", $user_id, $meta_key) ); 2298 2298 2299 wp_cache_delete( $user_id, 'user_meta' ); 2299 2300 clean_user_cache( $user_id ); 2300 wp_cache_delete( $user_id, 'user_meta' );2301 2301 2302 2302 if ( $cur && $cur->umeta_id ) 2303 2303 do_action( 'deleted_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); … … 2404 2404 else 2405 2405 return false; 2406 2406 2407 wp_cache_delete( $user_id, 'user_meta' ); 2407 2408 clean_user_cache( $user_id ); 2408 wp_cache_delete( $user_id, 'user_meta' );2409 2409 2410 2410 if ( !$cur ) 2411 2411 do_action( 'added_usermeta', $wpdb->insert_id, $user_id, $meta_key, $meta_value );