diff --git a/wp-admin/includes/user.php b/wp-admin/includes/user.php index ab4d8594eb..525d47bfd8 100644 --- a/wp-admin/includes/user.php +++ b/wp-admin/includes/user.php @@ -434,6 +434,8 @@ function wp_delete_user($id, $reassign = 'novalue') { $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->users WHERE ID = %d", $id) ); $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->usermeta WHERE user_id = %d", $id) ); + $user = new WP_User($id); + wp_cache_delete($id, 'users'); wp_cache_delete($user->user_login, 'userlogins'); wp_cache_delete($user->user_email, 'useremail');