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

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 26 17:02:48 UTC 2012


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

Comment (by ryan):

 In [22015]:
 {{{
 #!CommitTicketReference repository="" revision="22015"
 Don't read from the switched global. Instead use _wp_switched_stack.
 switched is retained for back compat and should not be directly read since
 it is prone to stompage by plugins. see #21459
 }}}

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


More information about the wp-trac mailing list