Delete the useremail cache when user updated. MU signup for old email fails until cache invalidated otherwise.

git-svn-id: https://develop.svn.wordpress.org/trunk@12795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Donncha O Caoimh 2010-01-22 16:06:31 +00:00
parent bdc99b016a
commit ffd8c38ae1
1 changed files with 2 additions and 0 deletions

View File

@ -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);