mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 04:40:26 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53458 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -278,12 +278,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( __( '<strong>Error</strong>: "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( __( '<strong>Error</strong>: "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.
|
||||
@@ -316,7 +316,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( __( '<strong>Error</strong>: "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