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

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 7 20:02:17 UTC 2012


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

Comment (by ryan):

 Todo:

  * Update wp_upload_dir() to use the new switched global or maybe a new
 function for accessing the switched state.
  * Get rid of switched since we can derive whether me are switched by
 checking if the switch stack is empty or not.

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


More information about the wp-trac mailing list