[wp-trac] [WordPress Trac] #25182: Avoid validating wildcard hostnames in populate_network() when multisite is already activated

WordPress Trac noreply at wordpress.org
Thu Aug 29 19:23:44 UTC 2013


#25182: Avoid validating wildcard hostnames in populate_network() when multisite is
already activated
--------------------------+-----------------------------
 Reporter:  jeremyfelt    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 `populate_network()` does a few things that are specific to an
 installation going through the conversion from single site to multisite.
 The last step is to check if it is a subdomain install, then generate a
 random string to test whether wildcard DNS is configured correctly.

 Most likely, if `populate_network()` is being used after the initial
 conversion, we are already aware of our DNS capabilities. Aside from the
 unnecessary HTTP request that is made by the server at this point, if
 wildcard DNS is not in place, a related `WP_Error` is returned even though
 the entire operation was successful.

 Attached patch folds the wildcard DNS check into the `if ( ! multisite() )
 {}` block so that it is only checked during initial conversion.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25182>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list