Ticket #20825: 20825.diff
File 20825.diff, 672 bytes (added by , 11 years ago) |
---|
-
src/wp-includes/ms-settings.php
115 115 116 116 if ( ! $blog_id ) { 117 117 if ( defined( 'WP_INSTALLING' ) ) { 118 $current_blog->blog_id = $blog_id = 1; 118 // in multisite, the main blog may not be always the first one!! 119 $current_blog->blog_id = $blog_id = ( defined('BLOG_ID_CURRENT_SITE') ? BLOG_ID_CURRENT_SITE : 1 ) ; 119 120 } else { 120 121 wp_load_translations_early(); 121 122 $msg = ! $wpdb->get_var( "SHOW TABLES LIKE '$wpdb->site'" ) ? ' ' . __( 'Database tables are missing.' ) : '';