Allow duplicate emails (generally empty) if WP_IMPORTING to restore 2.9 behavior. props blepoxp, yoavf. fixes #13130. see r12778.
git-svn-id: https://develop.svn.wordpress.org/trunk@14504 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ba8ab07ae2
commit
2bead5daeb
@ -140,7 +140,7 @@ function wp_insert_user($userdata) {
|
||||
$user_email = '';
|
||||
$user_email = apply_filters('pre_user_email', $user_email);
|
||||
|
||||
if ( !$update && email_exists($user_email) )
|
||||
if ( !$update && ! defined( 'WP_IMPORTING' ) && email_exists($user_email) )
|
||||
return new WP_Error('existing_user_email', __('This email address is already registered.') );
|
||||
|
||||
if ( empty($display_name) )
|
||||
|
Loading…
Reference in New Issue
Block a user