[wp-trac] [WordPress Trac] #23221: Multisite in subdirectory with root site address

WordPress Trac noreply at wordpress.org
Tue Jan 20 05:54:08 UTC 2015


#23221: Multisite in subdirectory with root site address
----------------------------+------------------------------
 Reporter:  grapplerulrich  |       Owner:
     Type:  defect (bug)    |      Status:  reopened
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Bootstrap/Load  |     Version:  3.5
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |     Focuses:  multisite
----------------------------+------------------------------

Comment (by alexander.rohmann):

 Just spent several hours trying to sort this out before coming across
 this. I don't see how "site URL" should ever depend on "path"

 I think it's fair to expect network_site_url to return the actual site
 url, just like site_url would. Meaning the URL to the WordPress files
 themselves. Would be really great if this and #27287 could be addressed.
 Some workarounds are ok, but would be so much simpler if this was just
 done right in core.

 I propose adding a new constant that specifies the WordPress files
 location. Something like:

 `define('WP_INSTALL_PATH','/wp/');`

 The path can still be used as a safe fallback, but this way we can have a
 Multisite and separate the install files without needing to bother with
 extra code.

 Thoughts?

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


More information about the wp-trac mailing list