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:
donncha 2010-01-22 16:06:31 +00:00
parent 4e5292e08f
commit 6847f8ea95
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);