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

WordPress Trac noreply at wordpress.org
Mon Sep 16 06:09:01 UTC 2013


#24962: Return the allcaps array from the get_role_caps() function
-----------------------------------+--------------------
 Reporter:  nofearinc              |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  3.7
Component:  Users                  |     Version:  trunk
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+--------------------

Comment (by DrewAPicture):

 Replying to [comment:3 nacin]:
 > Actually, I'm not really sure this is desired. I understand the argument
 about `get_`, but it's probably only going to encourage using this
 roles/capabilities array directly, when in reality you shouldn't ever do
 that. More inclined to wontfix now.

 Does the method have too much history to just change it from 'get' to
 'set' (deprecate get_* and introduce set_*, I guess) and forgo the
 proposed return value?

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


More information about the wp-trac mailing list