[wp-trac] [WordPress Trac] #11635: create a function that does this: wp_get_user_role()

WordPress Trac noreply at wordpress.org
Sat Dec 29 21:48:03 UTC 2012

#11635: create a function that does this: wp_get_user_role()
 Reporter:  hakre            |       Owner:  ryan
     Type:  defect (bug)     |      Status:  assigned
 Priority:  normal           |   Milestone:  3.6
Component:  Role/Capability  |     Version:  2.9
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
Changes (by wonderboymusic):

 * keywords:  dev-feedback has-patch needs-testing => has-patch close
 * milestone:  Future Release => 3.6


 I think the need for this is obsolete. I refreshed the function to return
 the first role or a passed role if the user has it. But it's only
 returning the label for the role ('administrator' etc). So the function
 only returns the first role or does the equiv of a `current_user_can` -
 the TODO has been there since the beginning of time:
 edit.php?rev=10935#L251 . Moving to 3.6 so it gets used or closed.

Ticket URL: <http://core.trac.wordpress.org/ticket/11635#comment:15>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list