Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#9462 closed enhancement (fixed)

Add map_meta_cap filter

Reported by: rmccue Owned by: rmccue
Priority: normal Milestone: 2.8
Component: Users Version: 2.8
Severity: normal Keywords: has-patch commit
Cc:

Description

I was recently creating users with custom capabilities and noticed the edit_post, etc, family translated by map_meta_cap. I needed this functionality, but it's currently missing a filter.

I hereby propose this filter:

Attachments (1)

9472.diff (312 bytes) - added by rmccue 4 years ago.
Add filter to wp-includes/capabilities.php

Download all attachments as: .zip

Change History (3)

rmccue4 years ago

Add filter to wp-includes/capabilities.php

  • Resolution set to fixed
  • Status changed from new to closed

(In [10874]) Let a plugin filter the expanded capabilities returned by map_meta_cap. Fixes #9462 props rmccue.

  • Milestone changed from Unassigned to 2.8
Note: See TracTickets for help on using tickets.