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

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 30 23:44:46 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:  Future
Component:  Role/Capability                      |  Release
 Severity:  normal                               |     Version:  2.9
 Keywords:  dev-feedback has-patch needs-        |  Resolution:
  testing                                        |
-------------------------------------------------+-------------------------

Comment (by wonderboymusic):

 Semantics - return "first" role - the 3 or 4 places it is used were
 already arbitrarily returning the first role. I know multiple roles per
 user per blog exists, but I wish it didn't. Joining user_meta to subdivide
 users completely breaks at scale (over 1M users, many millions of rows of
 meta)

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


More information about the wp-trac mailing list