diff --git a/wp-includes/ms-load.php b/wp-includes/ms-load.php index fc1ad1db06..b6be47c80b 100644 --- a/wp-includes/ms-load.php +++ b/wp-includes/ms-load.php @@ -189,9 +189,9 @@ function wpmu_current_site() { /** * Displays a failure message. * - * Used when blog does not exist. Checks for a missing $wpdb->site table as well. + * Used when a blog's tables do not exist. Checks for a missing $wpdb->site table as well. * - * @todo update for 3.0, pare down, and i18n + * @todo update Codex link for 3.0.0 * * @access private * @since 3.0.0 @@ -199,23 +199,24 @@ function wpmu_current_site() { function ms_not_installed() { global $wpdb, $domain, $path; - $msg = '
' . /*WP_I18N_CONTACT_OWNER*/'If your site does not display, please contact the owner of this network.'/*/WP_I18N_CONTACT_OWNER*/ . '
'; - $msg .= '' . /*WP_I18N_CHECK_MYSQL*/'If you are the owner of this network please check that MySQL is running properly and all tables are error free.'/*/WP_I18N_CHECK_MYSQL*/ . '
'; - if ( !$wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ) - $msg .= '' . sprintf( /*WP_I18N_TABLES_MISSING_LONG*/'Database tables are missing. This means that MySQL is not running, WordPress was not installed properly, or someone deleted %s
. You really should look at your database now.'/*/WP_I18N_TABLES_MISSING_LONG*/, $wpdb->site ) . '
' . /*WP_I18N_CONTACT_OWNER*/'If your site does not display, please contact the owner of this network.'/*/WP_I18N_CONTACT_OWNER*/ . ''; + $msg .= ' ' . /*WP_I18N_CHECK_MYSQL*/'If you are the owner of this network please check that MySQL is running properly and all tables are error free.'/*/WP_I18N_CHECK_MYSQL*/ . '
'; + if ( false && !$wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ) + $msg .= '' . sprintf( /*WP_I18N_TABLES_MISSING_LONG*/'Database tables are missing. This means that MySQL is not running, WordPress was not installed properly, or someone deleted %s
. You really should look at your database now.'/*/WP_I18N_TABLES_MISSING_LONG*/, $wpdb->site ) . '
' . sprintf( /*WP_I18N_NO_SITE_FOUND*/'Could Not Find Site! Searched for table %1$s in %2$s
. Is that right?'/*/WP_I18N_NO_SITE_FOUND*/, $domain . $path, DB_NAME, $wpdb->blogs ) . '
' . /*WP_I18N_RTFM*/'Read the bug report page. Some of the guidelines there may help you figure out what went wrong.'/*/WP_I18N_RTFM*/ . '
'; - $msg .= '' . /*WP_I18N_STUCK*/'If you’re still stuck with this message, then check that your database contains the following tables:'/*/WP_I18N_STUCK*/ . '
' . sprintf( /*WP_I18N_NO_SITE_FOUND*/'Could not find site %1$s
. Searched for table %2$s
in %3$s
. Is that right?'/*/WP_I18N_NO_SITE_FOUND*/, rtrim( $domain . $path, '/' ), DB_NAME, $wpdb->blogs ) . '
' . /*WP_I18N_WHAT_DO_I_DO*/'What do I do now?'/*WP_I18N_WHAT_DO_I_DO*/ . ' '; + $msg .= /*WP_I18N_RTFM*/'Read the bug report page. Some of the guidelines there may help you figure out what went wrong.'/*/WP_I18N_RTFM*/; + $msg .= ' ' . /*WP_I18N_STUCK*/'If you’re still stuck with this message, then check that your database contains the following tables:'/*/WP_I18N_STUCK*/ . '
' . /*WP_I18N_MS_FORUMS*/'If you suspect a problem please report it to the support forums but you must include the information asked for in the WPMU bug reporting guidelines!'/*/WP_I18N_MS_FORUMS*/ . '
'; - die( $msg ); + wp_die( $msg, $title ); }