Database: Use generic references to a database server in `ms_not_installed()`.
This replaces the references to “MySQL” with “your host’s database server” on the “Error establishing a database connection” page when Multisite could not be loaded. The generic “database server” term can refer to MySQL or MariaDB. Additionally, this brings some consistency with a similar error message in `wpdb::db_connect()`. Follow-up to [52367], [52423]. Props tj692, hansjovisyoast, tobifjellner. Fixes #55701. Built from https://develop.svn.wordpress.org/trunk@53394 git-svn-id: http://core.svn.wordpress.org/trunk@52983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2130878354
commit
04f9d9bdf6
|
@ -472,12 +472,12 @@ function ms_not_installed( $domain, $path ) {
|
|||
|
||||
$msg = '<h1>' . $title . '</h1>';
|
||||
$msg .= '<p>' . __( 'If your site does not display, please contact the owner of this network.' ) . '';
|
||||
$msg .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>';
|
||||
$msg .= ' ' . __( 'If you are the owner of this network please check that your host’s database server is running properly and all tables are error free.' ) . '</p>';
|
||||
$query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) );
|
||||
if ( ! $wpdb->get_var( $query ) ) {
|
||||
$msg .= '<p>' . sprintf(
|
||||
/* translators: %s: Table name. */
|
||||
__( '<strong>Database tables are missing.</strong> This means that MySQL is not running, WordPress was not installed properly, or someone deleted %s. You really should look at your database now.' ),
|
||||
__( '<strong>Database tables are missing.</strong> This means that your host’s database server is not running, WordPress was not installed properly, or someone deleted %s. You really should look at your database now.' ),
|
||||
'<code>' . $wpdb->site . '</code>'
|
||||
) . '</p>';
|
||||
} else {
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.1-alpha-53393';
|
||||
$wp_version = '6.1-alpha-53394';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue