[wp-trac] [WordPress Trac] #15819: Create user_can_for_blog function

WordPress Trac noreply at wordpress.org
Thu Dec 13 20:47:27 UTC 2012


#15819: Create user_can_for_blog function
-------------------------------------+-----------------------------
 Reporter:  mweichert                |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  Future Release
Component:  Role/Capability          |     Version:  3.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------------

Comment (by nacin):

 Not sure if this is necessary given how rarely the `user_can()` function
 is used. You should just do switch_to_blog(), user_can(),
 restore_current_blog().

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


More information about the wp-trac mailing list