WordPress.org

Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 9 years ago

#2005 closed defect (bug) (fixed)

Plugin hooks for capabilities

Reported by: ringmaster Owned by: ringmaster
Milestone: Priority: normal
Severity: normal Version: 2.0
Component: Administration Keywords: bg|has-patch
Focuses: Cc:

Description

Plugin hooks are needed for the has_cap() members of the capabilities classes so that plugins can modify the capabilities of users on request.

Attachments (2)

capabilities.php.diff (953 bytes) - added by ringmaster 10 years ago.
Adds two hooks.
caps-test.php (1.1 KB) - added by ringmaster 10 years ago.
Sample plugin with virtually no functionality, but explains the incoming params.

Download all attachments as: .zip

Change History (6)

@ringmaster10 years ago

Adds two hooks.

@ringmaster10 years ago

Sample plugin with virtually no functionality, but explains the incoming params.

comment:1 @ringmaster10 years ago

  • Keywords bg|has-patch added
  • Status changed from new to assigned

comment:2 @ryan10 years ago

  • Milestone set to 2.0

comment:3 @ryan10 years ago

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

(In [3296]) role_has_cap and user_has_cap filters from ringmaster. fixes #2005

comment:4 @anonymous9 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.