[wp-trac] [WordPress Trac] #32316: Caps: Pass cap being checked to the 'user_has_cap' filter

WordPress Trac noreply at wordpress.org
Fri May 8 19:19:43 UTC 2015


#32316: Caps: Pass cap being checked to the 'user_has_cap' filter
-------------------------+-----------------------------
 Reporter:  r-a-y        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  3.5.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 Is there a reason why we don't pass the cap being checked from
 `current_user_can()` to the `'user_has_cap'` filter?

 It would make things way easier for plugins to do checks.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32316>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list