mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
cc7bdc71e8
commit
2c6e1dc1f9
@ -149,7 +149,7 @@ function wp_authenticate_username_password( $user, $username, $password ) {
|
||||
if ( ! $user ) {
|
||||
return new WP_Error(
|
||||
'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 ) ) {
|
||||
$error = new WP_Error(
|
||||
'invalid_email',
|
||||
__( 'Unknown email address. Check again or try your username.' )
|
||||
__( '<strong>Error</strong>: Unknown email address. Check again or try your username.' )
|
||||
);
|
||||
} else {
|
||||
$error = new WP_Error(
|
||||
'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() ) {
|
||||
|
@ -13,7 +13,7 @@
|
||||
*
|
||||
* @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.
|
||||
|
Loading…
Reference in New Issue
Block a user