WordPress.org

Make WordPress Core

Ticket #13130: 3.0-import-emptyemail.diff

File 3.0-import-emptyemail.diff, 551 bytes (added by yoavf, 5 years ago)

Allow import of more than one user with empty email address

  • wp-includes/registration.php

     
    140140                $user_email = ''; 
    141141        $user_email = apply_filters('pre_user_email', $user_email); 
    142142 
    143         if ( !$update && email_exists($user_email) ) 
     143        if ( !$update && email_exists($user_email) && '' != $user_email ) 
    144144                return new WP_Error('existing_user_email', __('This email address is already registered.') ); 
    145145 
    146146        if ( empty($display_name) )