[wp-trac] [WordPress Trac] #29678: Multisite SHORTINIT from outside PATH_CURRENT_SITE

WordPress Trac noreply at wordpress.org
Mon Sep 15 17:44:42 UTC 2014


#29678: Multisite SHORTINIT from outside PATH_CURRENT_SITE
--------------------------------+------------------------
 Reporter:  sgissinger          |       Owner:
     Type:  defect (bug)        |      Status:  new
 Priority:  normal              |   Milestone:  4.0.1
Component:  Networks and Sites  |     Version:  3.9
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+------------------------

Comment (by sgissinger):

 You're right, it looks like a duplicate of #27999.

 My workaround is in the last {{{else}}} when nothing in
 {{{$_SERVER['REQUEST_URI']}}} path matches {{{PATH_CURRENT_SITE}}}
 constant.
 Then, it loads the default {{{PATH_CURRENT_SITE}}} instead of the first
 segment of {{{$_SERVER['REQUEST_URI']}}} which will be wrong in our case.

 If we are in a path that is not related to WP Multisite installation,
 loading the '''default site''' seems to be a logic behavior and it works
 well for me.

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


More information about the wp-trac mailing list