mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 17:20:07 +00:00
Cache user ids and user logins separately to avoid collision. Props donncha. fixes #2096
git-svn-id: https://develop.svn.wordpress.org/trunk@3330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -241,7 +241,7 @@ function wp_delete_user($id, $reassign = 'novalue') {
|
||||
$wpdb->query("DELETE FROM $wpdb->usermeta WHERE user_id = '$id'");
|
||||
|
||||
wp_cache_delete($id, 'users');
|
||||
wp_cache_delete($user->user_login, 'users');
|
||||
wp_cache_delete($user->user_login, 'userlogins');
|
||||
|
||||
do_action('delete_user', $id);
|
||||
|
||||
@@ -354,4 +354,4 @@ function comment_exists($comment_author, $comment_date) {
|
||||
WHERE comment_author = '$comment_author' AND comment_date = '$comment_date'");
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user