[wp-trac] [WordPress Trac] #52914: Inconsistent error message format on login

WordPress Trac noreply at wordpress.org
Fri Mar 26 02:42:30 UTC 2021


#52914: Inconsistent error message format on login
------------------------------------+-----------------------------
 Reporter:  dd32                    |      Owner:  (none)
     Type:  defect (bug)            |     Status:  new
 Priority:  normal                  |  Milestone:  Awaiting Review
Component:  Login and Registration  |    Version:
 Severity:  normal                  |   Keywords:
  Focuses:  ui-copy                 |
------------------------------------+-----------------------------
 The WordPress login screen is inconsistent in it's error messaging, using
 two different forms of textual error messages.

 The formatting is mostly related to [48059] which removed the
 `<strong>Error:</strong>` prefix from a few login related errors, but
 didn't remove it from the authentication handlers and other areas of `wp-
 login.php`. As a result, you can receive two different formats of errors.

 See the below attachment for an example of the mixed error message style.

 Here's a list of most of the error messages related to
 authentication/registration
 {{{
 wp-login.php
 __( 'Your password reset link appears to be invalid. Please request a new
 link below.' )
 __( 'Your password reset link has expired. Please request a new link
 below.' )
 __( 'The passwords do not match.' )
 __( '<strong>Error</strong>: Cookies are blocked due to unexpected output.
 For help, please see <a href="%1$s">this documentation</a> or try the <a
 href="%2$s">support forums</a>.' ),
 __( '<strong>Error</strong>: Cookies are blocked or not supported by your
 browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
 __( 'Your session has expired. Please log in to continue where you left
 off.' ), 'message' );
 __( 'You are now logged out.' ), 'message' );
 __( 'User registration is currently not allowed.' ) );
 __( '<strong>You have successfully updated WordPress!</strong> Please log
 back in to see what’s new.' ), 'message' );
 __( 'Recovery Mode Initialized. Please log in to continue.' ), 'message'
 );

 wp-includes/pluggable.php
 __( '<strong>Error</strong>: Invalid username, email address or incorrect
 password.' ) );

 wp-includes/user.php
 __( '<strong>Error</strong>: The username field is empty.' ) );
 __( '<strong>Error</strong>: The password field is empty.' ) );
 __( '<strong>Error</strong>: The password you entered for the username %s
 is incorrect.' ),
 __( '<strong>Error</strong>: The email field is empty.' ) );
 __( '<strong>Error</strong>: The password field is empty.' ) );
 __( '<strong>Error</strong>: The password you entered for the email
 address %s is incorrect.' ),
 __( '<strong>Error</strong>: Your account has been marked as a spammer.' )
 );
 __( '<strong>Error</strong>: There is no account with that username or
 email address.' ) );
 __( '<strong>Error</strong>: Please enter a username or email address.' )
 );
 __( '<strong>Error</strong>: There is no account with that username or
 email address.' ) );
 __( '<strong>Error</strong>: There is no account with that username or
 email address.' ) );
 __( '<strong>Error</strong>: The email could not be sent. Your site may
 not be correctly configured to send emails. <a href="%s">Get support for
 resetting your password</a>.' ),
 __( '<strong>Error</strong>: Please enter a username.' ) );
 __( '<strong>Error</strong>: This username is invalid because it uses
 illegal characters. Please enter a valid username.' ) );
 __( '<strong>Error</strong>: This username is already registered. Please
 choose another one.' ) );
 __( '<strong>Error</strong>: Sorry, that username is not allowed.' ) );
 __( '<strong>Error</strong>: Please type your email address.' ) );
 __( '<strong>Error</strong>: The email address isn’t correct.' ) );
 __( '<strong>Error</strong>: This email is already registered. Please
 choose another one.' ) );
 __( '<strong>Error</strong>: Couldn’t register you… please
 contact the <a href="mailto:%s">site admin</a>!' ),
 __( '<strong>Error</strong>: The email address isn’t correct.' ),
 __( '<strong>Error</strong>: The email address is already used.' ),
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52914>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list