Changeset 13641 for trunk/wp-admin/includes/schema.php
- Timestamp:
- 03/10/2010 08:17:07 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/schema.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/schema.php
r13636 r13641 621 621 * @param int $network_id id of network to populate 622 622 */ 623 function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $ vhost = 'no') {623 function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) { 624 624 global $wpdb, $current_site, $wp_db_version, $wp_rewrite; 625 625 … … 733 733 } 734 734 735 if ( $ vhost == 'yes')735 if ( $subdomain_install ) 736 736 update_option( 'permalink_structure', '/%year%/%monthnum%/%day%/%postname%/'); 737 737 else … … 740 740 $wp_rewrite->flush_rules(); 741 741 742 if ( $ vhost == 'yes') {742 if ( $subdomain_install ) { 743 743 $vhost_ok = false; 744 744 $hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname! 745 745 $page = wp_remote_get( 'http://' . $hostname, array( 'timeout' => 5, 'httpversion' => '1.1' ) ); 746 if ( is_ object( $page ) && is_wp_error( $page ) ) {746 if ( is_wp_error( $page ) ) { 747 747 foreach ( $page->get_error_messages() as $err ) { 748 748 $errstr = $err; … … 751 751 $vhost_ok = true; 752 752 } 753 if ( ! $vhost_ok ) {753 if ( ! $vhost_ok ) { 754 754 // @todo Update this to reflect the merge. Also: Multisite readme file, or remove the <blockquote> tags. 755 755 $msg = '<h2>' . esc_html__( 'Warning! Wildcard DNS may not be configured correctly!' ) . '</h2>';
Note: See TracChangeset
for help on using the changeset viewer.