[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 20:24: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:  3.7
Component:  Multisite     |     Version:  3.0
 Severity:  minor         |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by gradyetc):

 Replying to [comment:8 jeremyfelt]:
 > [attachment:25316.diff] adds `$path = $current_site->path;` when the
 data is retrieved from cache, matching how `$current_site` is returned in
 other parts of `wpmu_current_site()`.

 This works. Another approach would be not relying on
 {{{wpmu_current_site()}}} to set that global at all.  You could re-set
 {{{$path}}} in wp-includes/ms-settings.php with {{{$current_site->path}}}
 after it is set on line 48.

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


More information about the wp-trac mailing list