[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:09:42 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 nacin):

 > The end result is that trying to access pages on non-root sites (blogs)
 results in a 404 since the current site (blog) is not set correctly.
 Could you explain this? I only see $domain and $path used in two places:
 ms_not_installed(), and during signups.

 I kind of hate that it is ''intended'' for the $domain and $path variables
 to be global here. When fixing this bug, it would be nice to stop using
 these globals. For example, ms_not_installed() could receive $domain and
 $path as arguments instead.

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


More information about the wp-trac mailing list