Make WordPress Core


Ignore:
Timestamp:
06/02/2022 03:03:39 PM (4 years ago)
Author:
audrasjb
Message:

Text Changes: Improve consistency of admin error notices.

This changeset replaces <strong>Error</strong>: with <strong>Error:</strong>, for better consistency.

Props transl8or, mihaidumitrascu, audrasjb.
Fixes #50785.

File:
1 edited

Legend:

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

    r53455 r53458  
    791791                if ( isset( $_GET['error'] ) ) {
    792792                        if ( 'invalidkey' === $_GET['error'] ) {
    793                                 $errors->add( 'invalidkey', __( '<strong>Error</strong>: Your password reset link appears to be invalid. Please request a new link below.' ) );
     793                                $errors->add( 'invalidkey', __( '<strong>Error:</strong> Your password reset link appears to be invalid. Please request a new link below.' ) );
    794794                        } elseif ( 'expiredkey' === $_GET['error'] ) {
    795                                 $errors->add( 'expiredkey', __( '<strong>Error</strong>: Your password reset link has expired. Please request a new link below.' ) );
     795                                $errors->add( 'expiredkey', __( '<strong>Error:</strong> Your password reset link has expired. Please request a new link below.' ) );
    796796                        }
    797797                }
     
    919919                // Check if password fields do not match.
    920920                if ( ! empty( $_POST['pass1'] ) && trim( $_POST['pass2'] ) !== $_POST['pass1'] ) {
    921                         $errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
     921                        $errors->add( 'password_reset_mismatch', __( '<strong>Error:</strong> The passwords do not match.' ) );
    922922                }
    923923
     
    12271227                                        sprintf(
    12281228                                                /* translators: 1: Browser cookie documentation URL, 2: Support forums URL. */
    1229                                                 __( '<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>.' ),
     1229                                                __( '<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>.' ),
    12301230                                                __( 'https://wordpress.org/support/article/cookies/' ),
    12311231                                                __( 'https://wordpress.org/support/forums/' )
     
    12381238                                        sprintf(
    12391239                                                /* translators: %s: Browser cookie documentation URL. */
    1240                                                 __( '<strong>Error</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
     1240                                                __( '<strong>Error:</strong> Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
    12411241                                                __( 'https://wordpress.org/support/article/cookies/#enable-cookies-in-your-browser' )
    12421242                                        )
     
    13421342                                $errors->add( 'loggedout', __( 'You are now logged out.' ), 'message' );
    13431343                        } elseif ( isset( $_GET['registration'] ) && 'disabled' === $_GET['registration'] ) {
    1344                                 $errors->add( 'registerdisabled', __( '<strong>Error</strong>: User registration is currently not allowed.' ) );
     1344                                $errors->add( 'registerdisabled', __( '<strong>Error:</strong> User registration is currently not allowed.' ) );
    13451345                        } elseif ( strpos( $redirect_to, 'about.php?updated' ) ) {
    13461346                                $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.