Delete the useremail cache when user updated. MU signup for old email fails until cache invalidated otherwise.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4e5292e08f
commit
6847f8ea95
|
@ -271,6 +271,8 @@ function wp_update_user($userdata) {
|
|||
$userdata['user_pass'] = wp_hash_password($userdata['user_pass']);
|
||||
}
|
||||
|
||||
wp_cache_delete($user[ 'user_email' ], 'useremail');
|
||||
|
||||
// Merge old and new fields with new fields overwriting old ones.
|
||||
$userdata = array_merge($user, $userdata);
|
||||
$user_id = wp_insert_user($userdata);
|
||||
|
|
Loading…
Reference in New Issue