Ticket #23709: subdomain_wildcard.patch
File subdomain_wildcard.patch, 1022 bytes (added by , 10 years ago) |
---|
-
wp-admin/includes/schema.php
826 826 * @return bool|WP_Error True on success, or WP_Error on warning (with the install otherwise successful, 827 827 * so the error code must be checked) or failure. 828 828 */ 829 function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false ) {829 function populate_network( $network_id = 1, $domain = '', $email = '', $site_name = '', $path = '/', $subdomain_install = false, $wildcard_check = true ) { 830 830 global $wpdb, $current_site, $wp_db_version, $wp_rewrite; 831 831 832 832 $errors = new WP_Error(); … … 948 948 flush_rewrite_rules(); 949 949 } 950 950 951 if ( $subdomain_install ) {951 if ( $subdomain_install && $wildcard_check ) { 952 952 $vhost_ok = false; 953 953 $errstr = ''; 954 954 $hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname!