Drop the hyphen from e-mail and standardize on email.
The AP Stylebook changed this in 2011, and we're woefully inconsistent, so let's go with the standard. props morganestes, voldemortensen, niallkennedy (for patching on the previous AP style). fixes #26156. Built from https://develop.svn.wordpress.org/trunk@33774 git-svn-id: http://core.svn.wordpress.org/trunk@33742 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1950,9 +1950,9 @@ function register_new_user( $user_login, $user_email ) {
|
||||
$errors->add( 'username_exists', __( '<strong>ERROR</strong>: This username is already registered. Please choose another one.' ) );
|
||||
}
|
||||
|
||||
// Check the e-mail address
|
||||
// Check the email address
|
||||
if ( $user_email == '' ) {
|
||||
$errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your e-mail address.' ) );
|
||||
$errors->add( 'empty_email', __( '<strong>ERROR</strong>: Please type your email address.' ) );
|
||||
} elseif ( ! is_email( $user_email ) ) {
|
||||
$errors->add( 'invalid_email', __( '<strong>ERROR</strong>: The email address isn’t correct.' ) );
|
||||
$user_email = '';
|
||||
|
||||
Reference in New Issue
Block a user