Changeset 13642
- Timestamp:
- 03/10/2010 08:34:42 AM (15 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r13641 r13642 703 703 'siteurl' => get_option( 'siteurl' ), 704 704 'add_new_users' => '0', 705 'upload_space_check_disabled' => '0' 705 'upload_space_check_disabled' => '0', 706 'subdomain_install' => intval( $subdomain_install ), 706 707 ); 707 708 -
trunk/wp-admin/network.php
r13641 r13642 169 169 function network_step2() { 170 170 global $base, $wpdb; 171 $hostname = get_clean_basedomain(); 171 172 if ( $_POST ) { 172 $vhost = (bool) $_POST['subdomain_install'];173 $vhost = 'localhost' == $hostname ? false : (bool) $_POST['subdomain_install']; 173 174 } else { 174 175 if ( is_multisite() ) { … … 177 178 <div class="updated"><p><strong><?php _e( 'Notice: The Network feature is already enabled.' ); ?></strong> <?php _e( 'The original configuration steps are shown here for reference.' ); ?></p></div> 178 179 <?php } else { 179 $vhost = false; // @todo.180 $vhost = (bool) $wpdb->get_var( "SELECT meta_value FROM $wpdb->sitemeta WHERE site_id = 1 AND meta_key = 'subdomain_install'" ); 180 181 ?> 181 182 <div class="error"><p><strong><?php _e('Warning:'); ?></strong> <?php _e( 'An existing WordPress network was detected.' ); ?></p></div> 182 183 <p><?php _e( 'Please complete the configuration steps. To create a new network, you will need to empty or remove the network database tables.' ); ?></p> 184 <?php 185 } 186 } 187 188 if ( $_POST || ! is_multisite() ) { 189 ?> 183 190 <h3><?php esc_html_e( 'Enabling the Network' ); ?></h3> 184 191 <p><?php _e( 'Complete the following steps to enable the features for creating a network of sites.' ); ?></p> 185 192 <div class="updated inline"><p><?php _e( '<strong>Caution:</strong> We recommend you backup your existing <code>wp-config.php</code> and <code>.htaccess</code> files.' ); ?></p></div> 186 193 <?php 187 }188 194 } 189 195 ?> … … 195 201 define( 'VHOST', '<?php echo $vhost ? 'yes' : 'no'; ?>' ); 196 202 $base = '<?php echo $base; ?>'; 197 define( 'DOMAIN_CURRENT_SITE', '<?php echo get_clean_basedomain(); ?>' );203 define( 'DOMAIN_CURRENT_SITE', '<?php echo $hostname; ?>' ); 198 204 define( 'PATH_CURRENT_SITE', '<?php echo $base; ?>' ); 199 205 define( 'SITE_ID_CURRENT_SITE', 1 );
Note: See TracChangeset
for help on using the changeset viewer.