Login and Registration: Restore the "Error:" prefix for the "Unknown username" message.

This makes the message more consistent with other error messages related to authentication and registration.

Follow-up to [46417].

Props dd32.
See #52914, #52915.
Built from https://develop.svn.wordpress.org/trunk@50589


git-svn-id: http://core.svn.wordpress.org/trunk@50202 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2021-03-26 12:14:07 +00:00
parent cc7bdc71e8
commit 2c6e1dc1f9
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ function wp_authenticate_username_password( $user, $username, $password ) {
if ( ! $user ) { if ( ! $user ) {
return new WP_Error( return new WP_Error(
'invalid_username', 'invalid_username',
__( 'Unknown username. Check again or try your email address.' ) __( '<strong>Error</strong>: Unknown username. Check again or try your email address.' )
); );
} }
@ -347,12 +347,12 @@ function wp_authenticate_application_password( $input_user, $username, $password
if ( is_email( $username ) ) { if ( is_email( $username ) ) {
$error = new WP_Error( $error = new WP_Error(
'invalid_email', 'invalid_email',
__( 'Unknown email address. Check again or try your username.' ) __( '<strong>Error</strong>: Unknown email address. Check again or try your username.' )
); );
} else { } else {
$error = new WP_Error( $error = new WP_Error(
'invalid_username', 'invalid_username',
__( 'Unknown username. Check again or try your email address.' ) __( '<strong>Error</strong>: Unknown username. Check again or try your email address.' )
); );
} }
} elseif ( ! wp_is_application_passwords_available() ) { } elseif ( ! wp_is_application_passwords_available() ) {

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.8-alpha-50586'; $wp_version = '5.8-alpha-50589';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.