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-admin/setup-config.php

    r53156 r53458  
    279279
    280280                if ( empty( $prefix ) ) {
    281                         wp_die( __( '<strong>Error</strong>: "Table Prefix" must not be empty.' ) . $tryagain_link );
     281                        wp_die( __( '<strong>Error:</strong> "Table Prefix" must not be empty.' ) . $tryagain_link );
    282282                }
    283283
    284284                // Validate $prefix: it can only contain letters, numbers and underscores.
    285285                if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) {
    286                         wp_die( __( '<strong>Error</strong>: "Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
     286                        wp_die( __( '<strong>Error:</strong> "Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
    287287                }
    288288
     
    317317                if ( ! $wpdb->last_error ) {
    318318                        // MySQL was able to parse the prefix as a value, which we don't want. Bail.
    319                         wp_die( __( '<strong>Error</strong>: "Table Prefix" is invalid.' ) );
     319                        wp_die( __( '<strong>Error:</strong> "Table Prefix" is invalid.' ) );
    320320                }
    321321
Note: See TracChangeset for help on using the changeset viewer.