Make WordPress Core

Changeset 53394


Ignore:
Timestamp:
05/13/2022 12:19:35 PM (17 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-load.php

    r53250 r53394  
    473473    $msg   = '<h1>' . $title . '</h1>';
    474474    $msg  .= '<p>' . __( 'If your site does not display, please contact the owner of this network.' ) . '';
    475     $msg  .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>';
     475    $msg  .= ' ' . __( 'If you are the owner of this network please check that your host&#8217;s database server is running properly and all tables are error free.' ) . '</p>';
    476476    $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $wpdb->site ) );
    477477    if ( ! $wpdb->get_var( $query ) ) {
    478478        $msg .= '<p>' . sprintf(
    479479            /* translators: %s: Table name. */
    480             __( '<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.' ),
     480            __( '<strong>Database tables are missing.</strong> This means that your host&#8217;s database server is not running, WordPress was not installed properly, or someone deleted %s. You really should look at your database now.' ),
    481481            '<code>' . $wpdb->site . '</code>'
    482482        ) . '</p>';
Note: See TracChangeset for help on using the changeset viewer.