We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8b5797 commit 0a89f74Copy full SHA for 0a89f74
1 file changed
src/Core_Command.php
@@ -660,6 +660,8 @@ private function multisite_convert_( $assoc_args ) {
660
$assoc_args['subdomains']
661
);
662
663
+ $site_id = $wpdb->get_var("SELECT id FROM $wpdb->site");
664
+
665
if ( true === $result ) {
666
WP_CLI::log( 'Set up multisite database tables.' );
667
} elseif ( is_wp_error( $result ) ) {
@@ -691,7 +693,7 @@ private function multisite_convert_( $assoc_args ) {
691
693
\$base = '{$assoc_args['base']}';
692
694
define( 'DOMAIN_CURRENT_SITE', '{$domain}' );
695
define( 'PATH_CURRENT_SITE', '{$assoc_args['base']}' );
-define( 'SITE_ID_CURRENT_SITE', 1 );
696
+define( 'SITE_ID_CURRENT_SITE', '{$site_id}' );
697
define( 'BLOG_ID_CURRENT_SITE', 1 );
698
EOT;
699
0 commit comments