diff --git a/wp-admin/includes/schema.php b/wp-admin/includes/schema.php index 875caf4614..0f8779e305 100644 --- a/wp-admin/includes/schema.php +++ b/wp-admin/includes/schema.php @@ -702,7 +702,8 @@ Thanks! // @todo - network admins should have a method of editing the network siteurl (used for cookie hash) 'siteurl' => get_option( 'siteurl' ), 'add_new_users' => '0', - 'upload_space_check_disabled' => '0' + 'upload_space_check_disabled' => '0', + 'subdomain_install' => intval( $subdomain_install ), ); $insert = ''; diff --git a/wp-admin/network.php b/wp-admin/network.php index 8b31268fc5..1bb7b5753b 100644 --- a/wp-admin/network.php +++ b/wp-admin/network.php @@ -168,23 +168,29 @@ function network_step1() { */ function network_step2() { global $base, $wpdb; + $hostname = get_clean_basedomain(); if ( $_POST ) { - $vhost = (bool) $_POST['subdomain_install']; + $vhost = 'localhost' == $hostname ? false : (bool) $_POST['subdomain_install']; } else { if ( is_multisite() ) { $vhost = is_subdomain_install(); ?>
Caution: We recommend you backup your existing wp-config.php
and .htaccess
files.' ); ?>