Make WordPress Core


Ignore:
Timestamp:
02/01/2020 09:36:44 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Accessibility: Text Changes: Use sentence case for the word Error in various error messages, instead of all caps.

Using all caps should be avoided for better readability and because screen readers may pronounce all-caps words as abbreviations.

Props afercia, ryokuhi, sabernhardt, garrett-eclipse.
See #47656, #43037, #42945.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/setup-config.php

    r47122 r47156  
    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.