[wp-trac] [WordPress Trac] #27287: siteurl is missing WordPress path when creating a new site
WordPress Trac
noreply at wordpress.org
Thu Mar 6 00:03:36 UTC 2014
#27287: siteurl is missing WordPress path when creating a new site
--------------------------------+----------------------------
Reporter: danielbachhuber | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: Networks and Sites | Version:
Severity: normal | Keywords: needs-patch
Focuses: multisite |
--------------------------------+----------------------------
Our setup is a single subdomain network. WordPress is installed to `/wp`,
and we don't have rewrites configured to mask the subdirectory.
On the initial install, `wp_install()` sets the value of `siteurl`based on
`wp_guess_url()`. The main site ends up with these expected values:
* `siteurl`: domain.com/wp
* `home`: domain.com
On subsequent creation of a new site, `install_blog()` incorrectly sets
the option values for the new site to:
* `siteurl`: domain.com
* `home`: domain.com
This means the admin loads, but CSS and resources are broken, until I
update the `siteurl` option value to be "domain.com/wp".
I'd expect `install_blog()` to follow the same behavior as
`wp_install_blog()`.
#23221 is related, although this suggested fix doesn't also fix that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27287>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list