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

WordPress Trac wp-trac at lists.automattic.com
Tue Aug 7 19:38:41 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):

 Replying to [comment:1 scribu]:
 > If WP_Roles is always initialized now, we should remove the check from
 add_role(), get_role() etc.

 I'd like to get rid of the checks but want to avoid fatals for plugins
 performing user ops before init runs.

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


More information about the wp-trac mailing list