[wp-trac] [WordPress Trac] #33909: The `home` option not equivalent to the WP_HOME constant value in multisite and single instance

WordPress Trac noreply at wordpress.org
Mon Sep 21 14:28:25 UTC 2015


#33909: The `home` option not equivalent to the WP_HOME constant value in multisite
and single instance
-----------------------------------+------------------------------
 Reporter:  jlambe                 |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  Upgrade/Install        |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  2nd-opinion has-patch  |     Focuses:  multisite
-----------------------------------+------------------------------
Changes (by kraftbj):

 * keywords:  2nd-opinion => 2nd-opinion has-patch


Comment:

 Replying to [comment:5 fgirardey]:
 > The only case it is broken is when you install a single instance of
 WordPress with defined '''WP_HOME''' and '''WP_SITEURL''' and then you
 install a network.

 That does seem like a bug. I didn't track that was the original issue
 being reported.

 Some code links:
 The options are populated by `populate_options`, including both home/site
 URL by `wp_guess_url`, here:
 https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
 admin/includes/schema.php#L347

 `wp_guess_url` uses only the siteurl constant, here:
 https://core.trac.wordpress.org/browser/tags/4.3.1/src/wp-
 includes/functions.php#L3806

 With the exception of this case, `wp_guess_url` is only used in the
 context of needing the `site_url`, so what about a check for the constant
 in `populate_options`?

 cc @jeremyfelt for his multisite expertise.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33909#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list