Changeset 40594 for trunk/src/wp-includes/ms-functions.php
- Timestamp:
- 05/09/2017 04:32:53 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/ms-functions.php
r40593 r40594 443 443 } 444 444 445 if ( is_email_address_unsafe( $user_email ) ) 446 $errors->add('user_email', __('You cannot use that email address to signup. We are having problems with them blocking some of our email. Please use another email provider.')); 445 if ( ! is_email( $user_email ) ) { 446 $errors->add( 'user_email', __( 'Please enter a valid email address.' ) ); 447 } elseif ( is_email_address_unsafe( $user_email ) ) { 448 $errors->add( 'user_email', __( 'You cannot use that email address to signup. We are having problems with them blocking some of our email. Please use another email provider.' ) ); 449 } 447 450 448 451 if ( strlen( $user_name ) < 4 ) … … 456 459 if ( preg_match( '/^[0-9]*$/', $user_name ) ) 457 460 $errors->add('user_name', __('Sorry, usernames must have letters too!')); 458 459 if ( !is_email( $user_email ) )460 $errors->add('user_email', __( 'Please enter a valid email address.' ) );461 461 462 462 $limited_email_domains = get_site_option( 'limited_email_domains' );
Note: See TracChangeset
for help on using the changeset viewer.