Login and Registration: Add the "Error:" prefix to some password reset messages.
This makes the messages more consistent with other error messages related to authentication and registration. Follow-up to [50589]. Props dd32. Fixes #52914. Built from https://develop.svn.wordpress.org/trunk@50611 git-svn-id: http://core.svn.wordpress.org/trunk@50224 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
05631ab4cd
commit
dc4de0d5a5
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.8-alpha-50610';
|
||||
$wp_version = '5.8-alpha-50611';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
|
@ -724,9 +724,9 @@ switch ( $action ) {
|
|||
|
||||
if ( isset( $_GET['error'] ) ) {
|
||||
if ( 'invalidkey' === $_GET['error'] ) {
|
||||
$errors->add( 'invalidkey', __( 'Your password reset link appears to be invalid. Please request a new link below.' ) );
|
||||
$errors->add( 'invalidkey', __( '<strong>Error</strong>: Your password reset link appears to be invalid. Please request a new link below.' ) );
|
||||
} elseif ( 'expiredkey' === $_GET['error'] ) {
|
||||
$errors->add( 'expiredkey', __( 'Your password reset link has expired. Please request a new link below.' ) );
|
||||
$errors->add( 'expiredkey', __( '<strong>Error</strong>: Your password reset link has expired. Please request a new link below.' ) );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -842,7 +842,7 @@ switch ( $action ) {
|
|||
$errors = new WP_Error();
|
||||
|
||||
if ( isset( $_POST['pass1'] ) && $_POST['pass1'] !== $_POST['pass2'] ) {
|
||||
$errors->add( 'password_reset_mismatch', __( 'The passwords do not match.' ) );
|
||||
$errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1260,7 +1260,7 @@ switch ( $action ) {
|
|||
if ( isset( $_GET['loggedout'] ) && $_GET['loggedout'] ) {
|
||||
$errors->add( 'loggedout', __( 'You are now logged out.' ), 'message' );
|
||||
} elseif ( isset( $_GET['registration'] ) && 'disabled' === $_GET['registration'] ) {
|
||||
$errors->add( 'registerdisabled', __( 'User registration is currently not allowed.' ) );
|
||||
$errors->add( 'registerdisabled', __( '<strong>Error</strong>: User registration is currently not allowed.' ) );
|
||||
} elseif ( strpos( $redirect_to, 'about.php?updated' ) ) {
|
||||
$errors->add( 'updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what’s new.' ), 'message' );
|
||||
} elseif ( WP_Recovery_Mode_Link_Service::LOGIN_ACTION_ENTERED === $action ) {
|
||||
|
|
Loading…
Reference in New Issue