WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 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:

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

Download all attachments as: .zip

Change History (3)

rmccue5 years ago

Add filter to wp-includes/capabilities.php

comment:1 westi5 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.

comment:2 westi5 years ago

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