Make WordPress Core

Opened 9 years ago

Last modified 5 years ago

#32316 new enhancement

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

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


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 9 years ago.

Download all attachments as: .zip

Change History (2)

9 years ago

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

8 years ago

Note: See TracTickets for help on using tickets.