Make WordPress Core

Ticket #50785: 50785.diff

File 50785.diff, 26.9 KB (added by mihaidumitrascu, 3 years ago)
  • src/wp-admin/includes/file.php

    diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php
    index 399fdcf629..29db73767d 100644
    a b function request_filesystem_credentials( $form_post, $type = '', $error = false, 
    23262326        $connection_type = isset( $credentials['connection_type'] ) ? $credentials['connection_type'] : '';
    23272327
    23282328        if ( $error ) {
    2329                 $error_string = __( '<strong>Error</strong>: Could not connect to the server. Please verify the settings are correct.' );
     2329                $error_string = __( '<strong>Error:</strong> Could not connect to the server. Please verify the settings are correct.' );
    23302330                if ( is_wp_error( $error ) ) {
    23312331                        $error_string = esc_html( $error->get_error_message() );
    23322332                }
  • src/wp-admin/includes/user.php

    diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php
    index ab63f9e302..b6dc7919ae 100644
    a b function edit_user( $user_id = 0 ) { 
    143143
    144144        /* checking that username has been typed */
    145145        if ( '' === $user->user_login ) {
    146                 $errors->add( 'user_login', __( '<strong>Error</strong>: Please enter a username.' ) );
     146                $errors->add( 'user_login', __( '<strong>Error:</strong> Please enter a username.' ) );
    147147        }
    148148
    149149        /* checking that nickname has been typed */
    150150        if ( $update && empty( $user->nickname ) ) {
    151                 $errors->add( 'nickname', __( '<strong>Error</strong>: Please enter a nickname.' ) );
     151                $errors->add( 'nickname', __( '<strong>Error:</strong> Please enter a nickname.' ) );
    152152        }
    153153
    154154        /**
    function edit_user( $user_id = 0 ) { 
    164164
    165165        // Check for blank password when adding a user.
    166166        if ( ! $update && empty( $pass1 ) ) {
    167                 $errors->add( 'pass', __( '<strong>Error</strong>: Please enter a password.' ), array( 'form-field' => 'pass1' ) );
     167                $errors->add( 'pass', __( '<strong>Error:</strong> Please enter a password.' ), array( 'form-field' => 'pass1' ) );
    168168        }
    169169
    170170        // Check for "\" in password.
    171171        if ( false !== strpos( wp_unslash( $pass1 ), '\\' ) ) {
    172                 $errors->add( 'pass', __( '<strong>Error</strong>: Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
     172                $errors->add( 'pass', __( '<strong>Error:</strong> Passwords may not contain the character "\\".' ), array( 'form-field' => 'pass1' ) );
    173173        }
    174174
    175175        // Checking the password has been typed twice the same.
    176176        if ( ( $update || ! empty( $pass1 ) ) && $pass1 != $pass2 ) {
    177                 $errors->add( 'pass', __( '<strong>Error</strong>: Passwords don&#8217;t match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) );
     177                $errors->add( 'pass', __( '<strong>Error:</strong> Passwords don&#8217;t match. Please enter the same password in both password fields.' ), array( 'form-field' => 'pass1' ) );
    178178        }
    179179
    180180        if ( ! empty( $pass1 ) ) {
    function edit_user( $user_id = 0 ) { 
    182182        }
    183183
    184184        if ( ! $update && isset( $_POST['user_login'] ) && ! validate_username( $_POST['user_login'] ) ) {
    185                 $errors->add( 'user_login', __( '<strong>Error</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
     185                $errors->add( 'user_login', __( '<strong>Error:</strong> This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
    186186        }
    187187
    188188        if ( ! $update && username_exists( $user->user_login ) ) {
    189                 $errors->add( 'user_login', __( '<strong>Error</strong>: This username is already registered. Please choose another one.' ) );
     189                $errors->add( 'user_login', __( '<strong>Error:</strong> This username is already registered. Please choose another one.' ) );
    190190        }
    191191
    192192        /** This filter is documented in wp-includes/user.php */
    193193        $illegal_logins = (array) apply_filters( 'illegal_user_logins', array() );
    194194
    195195        if ( in_array( strtolower( $user->user_login ), array_map( 'strtolower', $illegal_logins ), true ) ) {
    196                 $errors->add( 'invalid_username', __( '<strong>Error</strong>: Sorry, that username is not allowed.' ) );
     196                $errors->add( 'invalid_username', __( '<strong>Error:</strong> Sorry, that username is not allowed.' ) );
    197197        }
    198198
    199199        /* checking email address */
    200200        if ( empty( $user->user_email ) ) {
    201                 $errors->add( 'empty_email', __( '<strong>Error</strong>: Please enter an email address.' ), array( 'form-field' => 'email' ) );
     201                $errors->add( 'empty_email', __( '<strong>Error:</strong> Please enter an email address.' ), array( 'form-field' => 'email' ) );
    202202        } elseif ( ! is_email( $user->user_email ) ) {
    203                 $errors->add( 'invalid_email', __( '<strong>Error</strong>: The email address isn&#8217;t correct.' ), array( 'form-field' => 'email' ) );
     203                $errors->add( 'invalid_email', __( '<strong>Error:</strong> The email address isn&#8217;t correct.' ), array( 'form-field' => 'email' ) );
    204204        } else {
    205205                $owner_id = email_exists( $user->user_email );
    206206                if ( $owner_id && ( ! $update || ( $owner_id != $user->ID ) ) ) {
    207                         $errors->add( 'email_exists', __( '<strong>Error</strong>: This email is already registered. Please choose another one.' ), array( 'form-field' => 'email' ) );
     207                        $errors->add( 'email_exists', __( '<strong>Error:</strong> This email is already registered. Please choose another one.' ), array( 'form-field' => 'email' ) );
    208208                }
    209209        }
    210210
  • src/wp-admin/options.php

    diff --git a/src/wp-admin/options.php b/src/wp-admin/options.php
    index 019f9529c4..1ee1be57e5 100644
    a b if ( 'update' === $action ) { // We are saving settings sent from a settings pag 
    238238                wp_die(
    239239                        sprintf(
    240240                                /* translators: %s: The options page name. */
    241                                 __( '<strong>Error</strong>: Options page %s not found in the allowed options list.' ),
     241                                __( '<strong>Error:</strong> Options page %s not found in the allowed options list.' ),
    242242                                '<code>' . esc_html( $option_page ) . '</code>'
    243243                        )
    244244                );
  • src/wp-admin/setup-config.php

    diff --git a/src/wp-admin/setup-config.php b/src/wp-admin/setup-config.php
    index 881398ff57..2b61fe643c 100644
    a b switch ( $step ) { 
    277277                $tryagain_link = '</p><p class="step"><a href="' . $step_1 . '" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try Again' ) . '</a>';
    278278
    279279                if ( empty( $prefix ) ) {
    280                         wp_die( __( '<strong>Error</strong>: "Table Prefix" must not be empty.' ) . $tryagain_link );
     280                        wp_die( __( '<strong>Error:</strong> "Table Prefix" must not be empty.' ) . $tryagain_link );
    281281                }
    282282
    283283                // Validate $prefix: it can only contain letters, numbers and underscores.
    284284                if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) {
    285                         wp_die( __( '<strong>Error</strong>: "Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
     285                        wp_die( __( '<strong>Error:</strong> "Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
    286286                }
    287287
    288288                // Test the DB connection.
    switch ( $step ) { 
    315315                $wpdb->show_errors( $errors );
    316316                if ( ! $wpdb->last_error ) {
    317317                        // MySQL was able to parse the prefix as a value, which we don't want. Bail.
    318                         wp_die( __( '<strong>Error</strong>: "Table Prefix" is invalid.' ) );
     318                        wp_die( __( '<strong>Error:</strong> "Table Prefix" is invalid.' ) );
    319319                }
    320320
    321321                // Generate keys and salts using secure CSPRNG; fallback to API if enabled; further fallback to original wp_generate_password().
  • src/wp-includes/comment.php

    diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php
    index c2892f16b1..35895404de 100644
    a b function wp_check_comment_data_max_lengths( $comment_data ) { 
    12961296        $max_lengths = wp_get_comment_fields_max_lengths();
    12971297
    12981298        if ( isset( $comment_data['comment_author'] ) && mb_strlen( $comment_data['comment_author'], '8bit' ) > $max_lengths['comment_author'] ) {
    1299                 return new WP_Error( 'comment_author_column_length', __( '<strong>Error</strong>: Your name is too long.' ), 200 );
     1299                return new WP_Error( 'comment_author_column_length', __( '<strong>Error:</strong> Your name is too long.' ), 200 );
    13001300        }
    13011301
    13021302        if ( isset( $comment_data['comment_author_email'] ) && strlen( $comment_data['comment_author_email'] ) > $max_lengths['comment_author_email'] ) {
    1303                 return new WP_Error( 'comment_author_email_column_length', __( '<strong>Error</strong>: Your email address is too long.' ), 200 );
     1303                return new WP_Error( 'comment_author_email_column_length', __( '<strong>Error:</strong> Your email address is too long.' ), 200 );
    13041304        }
    13051305
    13061306        if ( isset( $comment_data['comment_author_url'] ) && strlen( $comment_data['comment_author_url'] ) > $max_lengths['comment_author_url'] ) {
    1307                 return new WP_Error( 'comment_author_url_column_length', __( '<strong>Error</strong>: Your URL is too long.' ), 200 );
     1307                return new WP_Error( 'comment_author_url_column_length', __( '<strong>Error:</strong> Your URL is too long.' ), 200 );
    13081308        }
    13091309
    13101310        if ( isset( $comment_data['comment_content'] ) && mb_strlen( $comment_data['comment_content'], '8bit' ) > $max_lengths['comment_content'] ) {
    1311                 return new WP_Error( 'comment_content_column_length', __( '<strong>Error</strong>: Your comment is too long.' ), 200 );
     1311                return new WP_Error( 'comment_content_column_length', __( '<strong>Error:</strong> Your comment is too long.' ), 200 );
    13121312        }
    13131313
    13141314        return true;
    function wp_handle_comment_submission( $comment_data ) { 
    35493549
    35503550        if ( get_option( 'require_name_email' ) && ! $user->exists() ) {
    35513551                if ( '' == $comment_author_email || '' == $comment_author ) {
    3552                         return new WP_Error( 'require_name_email', __( '<strong>Error</strong>: Please fill the required fields.' ), 200 );
     3552                        return new WP_Error( 'require_name_email', __( '<strong>Error:</strong> Please fill the required fields.' ), 200 );
    35533553                } elseif ( ! is_email( $comment_author_email ) ) {
    3554                         return new WP_Error( 'require_valid_email', __( '<strong>Error</strong>: Please enter a valid email address.' ), 200 );
     3554                        return new WP_Error( 'require_valid_email', __( '<strong>Error:</strong> Please enter a valid email address.' ), 200 );
    35553555                }
    35563556        }
    35573557
    function wp_handle_comment_submission( $comment_data ) { 
    35763576         */
    35773577        $allow_empty_comment = apply_filters( 'allow_empty_comment', false, $commentdata );
    35783578        if ( '' === $comment_content && ! $allow_empty_comment ) {
    3579                 return new WP_Error( 'require_valid_comment', __( '<strong>Error</strong>: Please type your comment text.' ), 200 );
     3579                return new WP_Error( 'require_valid_comment', __( '<strong>Error:</strong> Please type your comment text.' ), 200 );
    35803580        }
    35813581
    35823582        $check_max_lengths = wp_check_comment_data_max_lengths( $commentdata );
    function wp_handle_comment_submission( $comment_data ) { 
    35903590        }
    35913591
    35923592        if ( ! $comment_id ) {
    3593                 return new WP_Error( 'comment_save_error', __( '<strong>Error</strong>: The comment could not be saved. Please try again later.' ), 500 );
     3593                return new WP_Error( 'comment_save_error', __( '<strong>Error:</strong> The comment could not be saved. Please try again later.' ), 500 );
    35943594        }
    35953595
    35963596        return get_comment( $comment_id );
  • src/wp-includes/load.php

    diff --git a/src/wp-includes/load.php b/src/wp-includes/load.php
    index ffbc1d2290..69e017fc92 100644
    a b function wp_set_wpdb_vars() { 
    624624                wp_die(
    625625                        sprintf(
    626626                                /* translators: 1: $table_prefix, 2: wp-config.php */
    627                                 __( '<strong>Error</strong>: %1$s in %2$s can only contain numbers, letters, and underscores.' ),
     627                                __( '<strong>Error:</strong> %1$s in %2$s can only contain numbers, letters, and underscores.' ),
    628628                                '<code>$table_prefix</code>',
    629629                                '<code>wp-config.php</code>'
    630630                        )
  • src/wp-includes/ms-deprecated.php

    diff --git a/src/wp-includes/ms-deprecated.php b/src/wp-includes/ms-deprecated.php
    index 1897e0f77b..5933d3fea0 100644
    a b function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { 
    401401
    402402        // Check if the domain has been used already. We should return an error message.
    403403        if ( domain_exists($domain, $path, $site_id) )
    404                 return __( '<strong>Error</strong>: Site URL you&#8217;ve entered is already taken.' );
     404                return __( '<strong>Error:</strong> Site URL you&#8217;ve entered is already taken.' );
    405405
    406406        /*
    407407         * Need to back up wpdb table names, and create a new wp_blogs entry for new blog.
    function create_empty_blog( $domain, $path, $weblog_title, $site_id = 1 ) { 
    410410         */
    411411
    412412        if ( ! $blog_id = insert_blog($domain, $path, $site_id) )
    413                 return __( '<strong>Error</strong>: There was a problem creating site entry.' );
     413                return __( '<strong>Error:</strong> There was a problem creating site entry.' );
    414414
    415415        switch_to_blog($blog_id);
    416416        install_blog($blog_id);
  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index 4a5891b8fd..d79e9520c9 100644
    a b if ( ! function_exists( 'wp_authenticate' ) ) : 
    595595                if ( null == $user ) {
    596596                        // TODO: What should the error message be? (Or would these even happen?)
    597597                        // Only needed if all authentication handlers fail to return anything.
    598                         $user = new WP_Error( 'authentication_failed', __( '<strong>Error</strong>: Invalid username, email address or incorrect password.' ) );
     598                        $user = new WP_Error( 'authentication_failed', __( '<strong>Error:</strong> Invalid username, email address or incorrect password.' ) );
    599599                }
    600600
    601601                $ignore_codes = array( 'empty_username', 'empty_password' );
  • src/wp-includes/user.php

    diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
    index 018c960c03..3c2431e6b4 100644
    a b function wp_authenticate_username_password( $user, $username, $password ) { 
    134134                $error = new WP_Error();
    135135
    136136                if ( empty( $username ) ) {
    137                         $error->add( 'empty_username', __( '<strong>Error</strong>: The username field is empty.' ) );
     137                        $error->add( 'empty_username', __( '<strong>Error:</strong> The username field is empty.' ) );
    138138                }
    139139
    140140                if ( empty( $password ) ) {
    141                         $error->add( 'empty_password', __( '<strong>Error</strong>: The password field is empty.' ) );
     141                        $error->add( 'empty_password', __( '<strong>Error:</strong> The password field is empty.' ) );
    142142                }
    143143
    144144                return $error;
    function wp_authenticate_username_password( $user, $username, $password ) { 
    151151                        'invalid_username',
    152152                        sprintf(
    153153                                /* translators: %s: User name. */
    154                                 __( '<strong>Error</strong>: The username <strong>%s</strong> is not registered on this site. If you are unsure of your username, try your email address instead.' ),
     154                                __( '<strong>Error:</strong> The username <strong>%s</strong> is not registered on this site. If you are unsure of your username, try your email address instead.' ),
    155155                                $username
    156156                        )
    157157                );
    function wp_authenticate_username_password( $user, $username, $password ) { 
    176176                        'incorrect_password',
    177177                        sprintf(
    178178                                /* translators: %s: User name. */
    179                                 __( '<strong>Error</strong>: The password you entered for the username %s is incorrect.' ),
     179                                __( '<strong>Error:</strong> The password you entered for the username %s is incorrect.' ),
    180180                                '<strong>' . $username . '</strong>'
    181181                        ) .
    182182                        ' <a href="' . wp_lostpassword_url() . '">' .
    function wp_authenticate_email_password( $user, $email, $password ) { 
    213213
    214214                if ( empty( $email ) ) {
    215215                        // Uses 'empty_username' for back-compat with wp_signon().
    216                         $error->add( 'empty_username', __( '<strong>Error</strong>: The email field is empty.' ) );
     216                        $error->add( 'empty_username', __( '<strong>Error:</strong> The email field is empty.' ) );
    217217                }
    218218
    219219                if ( empty( $password ) ) {
    220                         $error->add( 'empty_password', __( '<strong>Error</strong>: The password field is empty.' ) );
     220                        $error->add( 'empty_password', __( '<strong>Error:</strong> The password field is empty.' ) );
    221221                }
    222222
    223223                return $error;
    function wp_authenticate_email_password( $user, $email, $password ) { 
    248248                        'incorrect_password',
    249249                        sprintf(
    250250                                /* translators: %s: Email address. */
    251                                 __( '<strong>Error</strong>: The password you entered for the email address %s is incorrect.' ),
     251                                __( '<strong>Error:</strong> The password you entered for the email address %s is incorrect.' ),
    252252                                '<strong>' . $email . '</strong>'
    253253                        ) .
    254254                        ' <a href="' . wp_lostpassword_url() . '">' .
    function wp_authenticate_application_password( $input_user, $username, $password 
    351351                if ( is_email( $username ) ) {
    352352                        $error = new WP_Error(
    353353                                'invalid_email',
    354                                 __( '<strong>Error</strong>: Unknown email address. Check again or try your username.' )
     354                                __( '<strong>Error:</strong> Unknown email address. Check again or try your username.' )
    355355                        );
    356356                } else {
    357357                        $error = new WP_Error(
    358358                                'invalid_username',
    359                                 __( '<strong>Error</strong>: Unknown username. Check again or try your email address.' )
     359                                __( '<strong>Error:</strong> Unknown username. Check again or try your email address.' )
    360360                        );
    361361                }
    362362        } elseif ( ! wp_is_application_passwords_available() ) {
    function wp_authenticate_spam_check( $user ) { 
    503503                $spammed = apply_filters( 'check_is_user_spammed', is_user_spammy( $user ), $user );
    504504
    505505                if ( $spammed ) {
    506                         return new WP_Error( 'spammer_account', __( '<strong>Error</strong>: Your account has been marked as a spammer.' ) );
     506                        return new WP_Error( 'spammer_account', __( '<strong>Error:</strong> Your account has been marked as a spammer.' ) );
    507507                }
    508508        }
    509509        return $user;
    function get_password_reset_key( $user ) { 
    25612561        global $wp_hasher;
    25622562
    25632563        if ( ! ( $user instanceof WP_User ) ) {
    2564                 return new WP_Error( 'invalidcombo', __( '<strong>Error</strong>: There is no account with that username or email address.' ) );
     2564                return new WP_Error( 'invalidcombo', __( '<strong>Error:</strong> There is no account with that username or email address.' ) );
    25652565        }
    25662566
    25672567        /**
    function retrieve_password( $user_login = null ) { 
    27562756        }
    27572757
    27582758        if ( empty( $user_login ) ) {
    2759                 $errors->add( 'empty_username', __( '<strong>Error</strong>: Please enter a username or email address.' ) );
     2759                $errors->add( 'empty_username', __( '<strong>Error:</strong> Please enter a username or email address.' ) );
    27602760        } elseif ( strpos( $user_login, '@' ) ) {
    27612761                $user_data = get_user_by( 'email', trim( wp_unslash( $user_login ) ) );
    27622762                if ( empty( $user_data ) ) {
    2763                         $errors->add( 'invalid_email', __( '<strong>Error</strong>: There is no account with that username or email address.' ) );
     2763                        $errors->add( 'invalid_email', __( '<strong>Error:</strong> There is no account with that username or email address.' ) );
    27642764                }
    27652765        } else {
    27662766                $user_data = get_user_by( 'login', trim( wp_unslash( $user_login ) ) );
    function retrieve_password( $user_login = null ) { 
    28142814        }
    28152815
    28162816        if ( ! $user_data ) {
    2817                 $errors->add( 'invalidcombo', __( '<strong>Error</strong>: There is no account with that username or email address.' ) );
     2817                $errors->add( 'invalidcombo', __( '<strong>Error:</strong> There is no account with that username or email address.' ) );
    28182818                return $errors;
    28192819        }
    28202820
    function retrieve_password( $user_login = null ) { 
    29012901                        'retrieve_password_email_failure',
    29022902                        sprintf(
    29032903                                /* translators: %s: Documentation URL. */
    2904                                 __( '<strong>Error</strong>: The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ),
     2904                                __( '<strong>Error:</strong> The email could not be sent. Your site may not be correctly configured to send emails. <a href="%s">Get support for resetting your password</a>.' ),
    29052905                                esc_url( __( 'https://wordpress.org/support/article/resetting-your-password/' ) )
    29062906                        )
    29072907                );
    function register_new_user( $user_login, $user_email ) { 
    29682968
    29692969        // Check the username.
    29702970        if ( '' === $sanitized_user_login ) {
    2971                 $errors->add( 'empty_username', __( '<strong>Error</strong>: Please enter a username.' ) );
     2971                $errors->add( 'empty_username', __( '<strong>Error:</strong> Please enter a username.' ) );
    29722972        } elseif ( ! validate_username( $user_login ) ) {
    2973                 $errors->add( 'invalid_username', __( '<strong>Error</strong>: This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
     2973                $errors->add( 'invalid_username', __( '<strong>Error:</strong> This username is invalid because it uses illegal characters. Please enter a valid username.' ) );
    29742974                $sanitized_user_login = '';
    29752975        } elseif ( username_exists( $sanitized_user_login ) ) {
    2976                 $errors->add( 'username_exists', __( '<strong>Error</strong>: This username is already registered. Please choose another one.' ) );
     2976                $errors->add( 'username_exists', __( '<strong>Error:</strong> This username is already registered. Please choose another one.' ) );
    29772977
    29782978        } else {
    29792979                /** This filter is documented in wp-includes/user.php */
    29802980                $illegal_user_logins = (array) apply_filters( 'illegal_user_logins', array() );
    29812981                if ( in_array( strtolower( $sanitized_user_login ), array_map( 'strtolower', $illegal_user_logins ), true ) ) {
    2982                         $errors->add( 'invalid_username', __( '<strong>Error</strong>: Sorry, that username is not allowed.' ) );
     2982                        $errors->add( 'invalid_username', __( '<strong>Error:</strong> Sorry, that username is not allowed.' ) );
    29832983                }
    29842984        }
    29852985
    29862986        // Check the email address.
    29872987        if ( '' === $user_email ) {
    2988                 $errors->add( 'empty_email', __( '<strong>Error</strong>: Please type your email address.' ) );
     2988                $errors->add( 'empty_email', __( '<strong>Error:</strong> Please type your email address.' ) );
    29892989        } elseif ( ! is_email( $user_email ) ) {
    2990                 $errors->add( 'invalid_email', __( '<strong>Error</strong>: The email address isn&#8217;t correct.' ) );
     2990                $errors->add( 'invalid_email', __( '<strong>Error:</strong> The email address isn&#8217;t correct.' ) );
    29912991                $user_email = '';
    29922992        } elseif ( email_exists( $user_email ) ) {
    2993                 $errors->add( 'email_exists', __( '<strong>Error</strong>: This email is already registered. Please choose another one.' ) );
     2993                $errors->add( 'email_exists', __( '<strong>Error:</strong> This email is already registered. Please choose another one.' ) );
    29942994        }
    29952995
    29962996        /**
    function register_new_user( $user_login, $user_email ) { 
    30353035                        'registerfail',
    30363036                        sprintf(
    30373037                                /* translators: %s: Admin email address. */
    3038                                 __( '<strong>Error</strong>: Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">site admin</a>!' ),
     3038                                __( '<strong>Error:</strong> Couldn&#8217;t register you&hellip; please contact the <a href="mailto:%s">site admin</a>!' ),
    30393039                                get_option( 'admin_email' )
    30403040                        )
    30413041                );
    function send_confirmation_on_profile_email() { 
    32713271                if ( ! is_email( $_POST['email'] ) ) {
    32723272                        $errors->add(
    32733273                                'user_email',
    3274                                 __( '<strong>Error</strong>: The email address isn&#8217;t correct.' ),
     3274                                __( '<strong>Error:</strong> The email address isn&#8217;t correct.' ),
    32753275                                array(
    32763276                                        'form-field' => 'email',
    32773277                                )
    function send_confirmation_on_profile_email() { 
    32833283                if ( email_exists( $_POST['email'] ) ) {
    32843284                        $errors->add(
    32853285                                'user_email',
    3286                                 __( '<strong>Error</strong>: The email address is already used.' ),
     3286                                __( '<strong>Error:</strong> The email address is already used.' ),
    32873287                                array(
    32883288                                        'form-field' => 'email',
    32893289                                )
  • src/wp-includes/wp-db.php

    diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php
    index 53ba207203..3d378f64db 100644
    a b class wpdb { 
    36363636                // Make sure the server has the required MySQL version.
    36373637                if ( version_compare( $this->db_version(), $required_mysql_version, '<' ) ) {
    36383638                        /* translators: 1: WordPress version number, 2: Minimum required MySQL version number. */
    3639                         return new WP_Error( 'database_version', sprintf( __( '<strong>Error</strong>: WordPress %1$s requires MySQL %2$s or higher' ), $wp_version, $required_mysql_version ) );
     3639                        return new WP_Error( 'database_version', sprintf( __( '<strong>Error:</strong> WordPress %1$s requires MySQL %2$s or higher' ), $wp_version, $required_mysql_version ) );
    36403640                }
    36413641        }
    36423642
  • src/wp-login.php

    diff --git a/src/wp-login.php b/src/wp-login.php
    index b7c14b4c83..4cb5ba1064 100644
    a b switch ( $action ) { 
    724724
    725725                if ( isset( $_GET['error'] ) ) {
    726726                        if ( 'invalidkey' === $_GET['error'] ) {
    727                                 $errors->add( 'invalidkey', __( '<strong>Error</strong>: 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', __( '<strong>Error</strong>: 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                }
    732732
    switch ( $action ) { 
    842842                $errors = new WP_Error();
    843843
    844844                if ( isset( $_POST['pass1'] ) && $_POST['pass1'] !== $_POST['pass2'] ) {
    845                         $errors->add( 'password_reset_mismatch', __( '<strong>Error</strong>: The passwords do not match.' ) );
     845                        $errors->add( 'password_reset_mismatch', __( '<strong>Error:</strong> The passwords do not match.' ) );
    846846                }
    847847
    848848                /**
    switch ( $action ) { 
    11471147                                        'test_cookie',
    11481148                                        sprintf(
    11491149                                                /* translators: 1: Browser cookie documentation URL, 2: Support forums URL. */
    1150                                                 __( '<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>.' ),
     1150                                                __( '<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>.' ),
    11511151                                                __( 'https://wordpress.org/support/article/cookies/' ),
    11521152                                                __( 'https://wordpress.org/support/forums/' )
    11531153                                        )
    switch ( $action ) { 
    11581158                                        'test_cookie',
    11591159                                        sprintf(
    11601160                                                /* translators: %s: Browser cookie documentation URL. */
    1161                                                 __( '<strong>Error</strong>: Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
     1161                                                __( '<strong>Error:</strong> Cookies are blocked or not supported by your browser. You must <a href="%s">enable cookies</a> to use WordPress.' ),
    11621162                                                __( 'https://wordpress.org/support/article/cookies/#enable-cookies-in-your-browser' )
    11631163                                        )
    11641164                                );
    switch ( $action ) { 
    12601260                        if ( isset( $_GET['loggedout'] ) && $_GET['loggedout'] ) {
    12611261                                $errors->add( 'loggedout', __( 'You are now logged out.' ), 'message' );
    12621262                        } elseif ( isset( $_GET['registration'] ) && 'disabled' === $_GET['registration'] ) {
    1263                                 $errors->add( 'registerdisabled', __( '<strong>Error</strong>: 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' );
    12661266                        } elseif ( WP_Recovery_Mode_Link_Service::LOGIN_ACTION_ENTERED === $action ) {