diff -r 0f439c53f704 wp-includes/ms-settings.php
a
|
b
|
|
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.' ) : ''; |