mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@33774 602fd350-edb4-49c9-b593-d223f7449a82
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