Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#24382 closed defect (bug) (duplicate)

network_site_url returns incorrect value for Multisite subdirectory install

Reported by: creativeinfusion Owned by:
Priority: normal Milestone:
Component: Multisite Version: 3.5
Severity: normal Keywords:
Cc: Focuses:

Description

network_site_url() does not return the location of the WordPress install for Multisite subdirectory installations

  1. Install WordPress to its own directory (e.g. wordpress)
  2. Install network as subdirectory.
  3. 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)

#1 @SergeyBiryukov
13 years ago

Appears to be a duplicate of #23221.

#2 @nacin
13 years ago

I've removed the invalid designation from #23221 — what you are seeing is by design.

#3 @SergeyBiryukov
13 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Status newclosed

Duplicate of #23221.

Note: See TracTickets for help on using tickets.