Make WordPress Core

Opened 12 years ago

Last modified 7 years ago

#32316 new enhancement

Caps: Pass cap being checked to the 'user_has_cap' filter

Reported by: r-a-y Owned by:
Priority: normal Milestone:
Component: General Version: 3.5.1
Severity: normal Keywords:
Cc: Focuses:

Description

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.

Attachments (1)

32316.01.patch​ (1.3 KB ) - added by r-a-y 12 years ago.

Download all attachments as: .zip

Change History (2)

This ticket was mentioned in ​Slack in #buddypress by r-a-y. ​View the logs.


10 years ago

Note: See TracTickets for help on using tickets.