Minor MS startup cleanups. See #11644

git-svn-id: http://svn.automattic.com/wordpress/trunk@13254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-02-20 14:07:23 +00:00
parent 20f50e7f06
commit 4451f3f64f
2 changed files with 6 additions and 7 deletions

View File

@ -180,7 +180,6 @@ function wpmu_current_site() {
*
* Used when blog does not exist. Checks for a missing $wpdb->site table as well.
*
* @todo Merge with is_blog_installed(), dead_db(), wp_not_installed(), etc.
* @access private
* @since 3.0.0
*/

View File

@ -67,7 +67,7 @@ if ( is_subdomain_install() ) {
$path .= $blogname . '/';
$current_blog = wp_cache_get( 'current_blog_' . $domain . $path, 'site-options' );
if ( ! $current_blog ) {
$current_blog = $current_blog = get_blog_details( array('domain' => $domain, 'path' => $path ), false );
$current_blog = get_blog_details( array( 'domain' => $domain, 'path' => $path ), false );
if ( $current_blog )
wp_cache_set( 'current_blog_' . $domain . $path, $current_blog, 'site-options' );
}
@ -110,7 +110,7 @@ if ( ! $blog_id ) {
if ( defined( 'WP_INSTALLING' ) ) {
$current_blog->blog_id = $blog_id = 1;
} else {
$msg = ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ? __( 'Database tables are missing.' ) : '';
$msg = ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ? ' ' . __( 'Database tables are missing.' ) : '';
wp_die( __( 'No blog by that name on this system.' ) . $msg );
}
}