WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 5 months ago

#32316 new enhancement

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

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

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

Download all attachments as: .zip

Change History (2)

@r-a-y
4 years ago

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


3 years ago

Note: See TracTickets for help on using tickets.