From fba8c3dabe56ed060a7dd42669ac1f3d83d77804 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Thu, 29 Aug 2013 19:30:46 +0000 Subject: [PATCH] Avoid validating wildcard hostnames in populate_network() when multisite is already activated. props jeremyfelt. fixes #25182. git-svn-id: https://develop.svn.wordpress.org/trunk@25171 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/schema.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index b2009958a6..4814a05d74 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -947,9 +947,10 @@ We hope you enjoy your new site. Thanks! $wp_rewrite->set_permalink_structure( '/blog/%year%/%monthnum%/%day%/%postname%/' ); flush_rewrite_rules(); - } - if ( $subdomain_install ) { + if ( ! $subdomain_install ) + return true; + $vhost_ok = false; $errstr = ''; $hostname = substr( md5( time() ), 0, 6 ) . '.' . $domain; // Very random hostname!