[wp-trac] [WordPress Trac] #24382: network_site_url returns incorrect value for Multisite subdirectory install

WordPress Trac noreply at wordpress.org
Tue May 21 11:39:37 UTC 2013


#24382: network_site_url returns incorrect value for Multisite subdirectory install
------------------------------+-----------------------------
 Reporter:  creativeinfusion  |      Owner:
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Multisite         |    Version:  3.5
 Severity:  normal            |   Keywords:
------------------------------+-----------------------------
 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).

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


More information about the wp-trac mailing list