[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:51:34 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 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.

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


More information about the wp-trac mailing list