mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@48115 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -280,12 +280,12 @@ switch ( $step ) {
|
||||
$tryagain_link = '</p><p class="step"><a href="' . $step_1 . '" onclick="javascript:history.go(-1);return false;" class="button button-large">' . __( 'Try Again' ) . '</a>';
|
||||
|
||||
if ( empty( $prefix ) ) {
|
||||
wp_die( __( '"Table Prefix" must not be empty.' ) . $tryagain_link );
|
||||
wp_die( __( '<strong>Error</strong>: "Table Prefix" must not be empty.' ) . $tryagain_link );
|
||||
}
|
||||
|
||||
// Validate $prefix: it can only contain letters, numbers and underscores.
|
||||
if ( preg_match( '|[^a-z0-9_]|i', $prefix ) ) {
|
||||
wp_die( __( '"Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
|
||||
wp_die( __( '<strong>Error</strong>: "Table Prefix" can only contain numbers, letters, and underscores.' ) . $tryagain_link );
|
||||
}
|
||||
|
||||
// Test the DB connection.
|
||||
@@ -318,7 +318,7 @@ switch ( $step ) {
|
||||
$wpdb->show_errors( $errors );
|
||||
if ( ! $wpdb->last_error ) {
|
||||
// MySQL was able to parse the prefix as a value, which we don't want. Bail.
|
||||
wp_die( __( '"Table Prefix" is invalid.' ) );
|
||||
wp_die( __( '<strong>Error</strong>: "Table Prefix" is invalid.' ) );
|
||||
}
|
||||
|
||||
// Generate keys and salts using secure CSPRNG; fallback to API if enabled; further fallback to original wp_generate_password().
|
||||
|
||||
Reference in New Issue
Block a user