[wp-trac] [WordPress Trac] #25316: Inconsistent behavior in wpmu_current_site() when using persistent object cache

WordPress Trac noreply at wordpress.org
Fri Sep 13 18:52:38 UTC 2013


#25316: Inconsistent behavior in wpmu_current_site() when using persistent object
cache
--------------------------+------------------------------
 Reporter:  gradyetc      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.0
 Severity:  minor         |  Resolution:
 Keywords:                |
--------------------------+------------------------------

Comment (by gradyetc):

 Sorry for the lack of clarity -- perhaps an example would help:

 http://example.com/
 http://example.com/site/
 http://example.com/site/about/

 Where /site/ is a site in a sub-directory multisite install.

 Before the call to wpmu_current_site, $path looks like this (on line 46):
 /site/

 Inside wpmu_current_site under normal conditions, $path will get reset to
 this:
 /

 If this does not happen, the value for $path just before the attempts to
 set $current_blog starting on 74 is this:
 /site/about/

 Instead of "/site/".  (And also, $blogname is "about" instead of "site").

 Since there is no blog with that path, it winds up using the root site
 instead.  As a side note $domain doesn't actually change in
 wpmu_current_site; so the real issue here is with $path.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25316#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list