Opened 11 years ago
Closed 11 years ago
#24382 closed defect (bug) (duplicate)
network_site_url returns incorrect value for Multisite subdirectory install
Reported by: | creativeinfusion | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5 |
Component: | Multisite | Keywords: | |
Focuses: | Cc: |
Description
network_site_url() does not return the location of the WordPress install for Multisite subdirectory installations
- Install WordPress to its own directory (e.g. wordpress)
- Install network as subdirectory.
- Add a subsite (so we have main site and subsite).
network_site_url() returns the same value as network_home_url() when it should be different, i.e. it always returns http://domain.com rather than the expected http://domain.com/wordpress
For information, site_url and home_url return as follows:
main site | subsite | |
---|---|---|
site_url | http://domain.com/wordpress | http://domain.com/subsite |
home_url | http://domain.com | http://domain.com/subsite |
Note that the unexpected behaviour of site_url for the subsite seems to be by design (see comment:43:ticket:19796 and comment:78:ticket:19796).
Change History (3)
Note: See
TracTickets for help on using
tickets.
Appears to be a duplicate of #23221.