WordPress.org

Make WordPress Core

Changeset 50611


Ignore:
Timestamp:
03/28/2021 10:22:10 AM (8 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r50541 r50611  
    725725        if ( isset( $_GET['error'] ) ) {
    726726            if ( 'invalidkey' === $_GET['error'] ) {
    727                 $errors->add( 'invalidkey', __( 'Your password reset link appears to be invalid. Please request a new link below.' ) );
     727                $errors->add( 'invalidkey', __( '<strong>Error</strong>: Your password reset link appears to be invalid. Please request a new link below.' ) );
    728728            } elseif ( 'expiredkey' === $_GET['error'] ) {
    729                 $errors->add( 'expiredkey', __( 'Your password reset link has expired. Please request a new link below.' ) );
     729                $errors->add( 'expiredkey', __( '<strong>Error</strong>: Your password reset link has expired. Please request a new link below.' ) );
    730730            }
    731731        }
     
    843843
    844844        if ( isset( $_POST['pass1'] ) && $_POST['pass1'] !== $_POST['pass2'] ) {
    845             $errors->add( 'password_reset_mismatch', __( 'The passwords do not match.' ) );
     845            $errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
    846846        }
    847847
     
    12611261                $errors->add( 'loggedout', __( 'You are now logged out.' ), 'message' );
    12621262            } elseif ( isset( $_GET['registration'] ) && 'disabled' === $_GET['registration'] ) {
    1263                 $errors->add( 'registerdisabled', __( 'User registration is currently not allowed.' ) );
     1263                $errors->add( 'registerdisabled', __( '<strong>Error</strong>: User registration is currently not allowed.' ) );
    12641264            } elseif ( strpos( $redirect_to, 'about.php?updated' ) ) {
    12651265                $errors->add( 'updated', __( '<strong>You have successfully updated WordPress!</strong> Please log back in to see what&#8217;s new.' ), 'message' );
Note: See TracChangeset for help on using the changeset viewer.