Ticket #39915: 39915.patch
File 39915.patch, 1.1 KB (added by , 8 years ago) |
---|
-
src/wp-includes/ms-functions.php
441 441 $errors->add( 'user_name', __( 'Sorry, that username is not allowed.' ) ); 442 442 } 443 443 444 if ( ! is_email( $user_email ) ) { 445 $errors->add( 'user_email', __( 'Please enter a valid email address.' ) ); 446 } 447 444 448 if ( is_email_address_unsafe( $user_email ) ) 445 449 $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.')); 446 450 … … 455 459 if ( preg_match( '/^[0-9]*$/', $user_name ) ) 456 460 $errors->add('user_name', __('Sorry, usernames must have letters too!')); 457 461 458 if ( !is_email( $user_email ) )459 $errors->add('user_email', __( 'Please enter a valid email address.' ) );460 461 462 $limited_email_domains = get_site_option( 'limited_email_domains' ); 462 463 if ( is_array( $limited_email_domains ) && ! empty( $limited_email_domains ) ) { 463 464 $emaildomain = substr( $user_email, 1 + strpos( $user_email, '@' ) );