[wp-trac] [WordPress Trac] #24962: Return the allcaps array from the get_role_caps() function

WordPress Trac noreply at wordpress.org
Mon Aug 5 22:40:38 UTC 2013


#24962: Return the allcaps array from the get_role_caps() function
--------------------------+-----------------------------
 Reporter:  nofearinc     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  trunk
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 The `WP_User` class has a function called `get_role_caps()` that is
 compiling a list with all user capabilities (coming from roles or
 individual).

 It's a great function, but it's just setting the `allcaps` object field
 which has to be taken additionally. For me it makes sense to get that list
 returned to the user for further use if needed and I was expecting to get
 the data as a function result (the function starts with 'get' anyway).

 Applying a patch for returning the field data from the function.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24962>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list