Make WordPress Core

Opened 9 years ago

Closed 9 years ago

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

Download all attachments as: .zip

Change History (3)

9 years ago

Add filter to wp-includes/capabilities.php

#1 @westi
9 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
9 years ago

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