[wp-trac] [WordPress Trac] #22624: New current_user_has_role function to work for roles like current_user_can does for caps

WordPress Trac noreply at wordpress.org
Thu Sep 26 16:14:14 UTC 2013


#22624: New current_user_has_role function to work for roles like current_user_can
does for caps
-----------------------------+------------------------------
 Reporter:  sc0ttkclark      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Users            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+------------------------------

Comment (by sc0ttkclark):

 Capabilities are great, but when/if roles get beefed up (multiple roles
 per user), this is going to be more handy for developers of sites. You're
 right though, plugins generally don't have a huge use for this on their
 own, it would be specific to each site, but still useful.

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


More information about the wp-trac mailing list