[wp-trac] [WordPress Trac] #21459: Cleanup switch_to_blog() and restore_current_blog()

WordPress Trac wp-trac at lists.automattic.com
Mon Aug 20 20:53:41 UTC 2012


#21459: Cleanup switch_to_blog() and restore_current_blog()
-------------------------+-----------------------
 Reporter:  ryan         |       Owner:  ryan
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  3.5
Component:  Multisite    |     Version:  3.4.1
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+-----------------------

Comment (by nacin):

 Replying to [comment:15 ryan]:
 > Perhaps the *_option() functions should check is_ms_switched() and not
 run the option filters if switched. I've seen several places that set
 filters assuming the current blog will always be current.  When filtering
 things like home this can lead to interesting hijinks.

 I've seen the same. Perhaps we can drop-in the _blog_option filters for
 these cases?

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


More information about the wp-trac mailing list