Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#9462 closed enhancement (fixed)

Add map_meta_cap filter

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


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 7 years ago.
Add filter to wp-includes/capabilities.php

Download all attachments as: .zip

Change History (3)

7 years ago

Add filter to wp-includes/capabilities.php

#1 @westi
7 years ago

  • 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.

#2 @westi
7 years ago

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