WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/07/2010 08:35:04 PM (11 years ago)
Author:
nacin
Message:

Allow duplicate emails (generally empty) if WP_IMPORTING to restore 2.9 behavior. props blepoxp, yoavf. fixes #13130. see r12778.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/registration.php

    r13725 r14504  
    141141    $user_email = apply_filters('pre_user_email', $user_email);
    142142
    143     if ( !$update && email_exists($user_email) )
     143    if ( !$update && ! defined( 'WP_IMPORTING' ) && email_exists($user_email) )
    144144        return new WP_Error('existing_user_email', __('This email address is already registered.') );
    145145
Note: See TracChangeset for help on using the changeset viewer.