Make WordPress Core


Ignore:
Timestamp:
06/21/2020 01:58:46 PM (4 years ago)
Author:
afercia
Message:

I18N: Restore the "Error:" prefix for error messages.

Partially reverts [48059] as there's no full consensus on the removal of the text prefix. Further actions should be taken to improve consistency and accessibility of the admin notices. Keeps some improvements to the translatable strings from [48059].

Fixes #47656.

File:
1 edited

Legend:

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

    r48059 r48115  
    281281
    282282        if ( empty( $prefix ) ) {
    283             wp_die( __( '"Table Prefix" must not be empty.' ) . $tryagain_link );
     283            wp_die( __( '<strong>Error</strong>: "Table Prefix" must not be empty.' ) . $tryagain_link );
    284284        }
    285285
    286286        // Validate $prefix: it can only contain letters, numbers and underscores.
    287287        if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) {
    288             wp_die( __( '"Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
     288            wp_die( __( '<strong>Error</strong>: "Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
    289289        }
    290290
     
    319319        if ( ! $wpdb->last_error ) {
    320320            // MySQL was able to parse the prefix as a value, which we don't want. Bail.
    321             wp_die( __( '"Table Prefix" is invalid.' ) );
     321            wp_die( __( '<strong>Error</strong>: "Table Prefix" is invalid.' ) );
    322322        }
    323323
Note: See TracChangeset for help on using the changeset viewer.