WordPress.org

Make WordPress Core

Opened 11 years ago

Closed 11 years ago

Last modified 10 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 11 years ago.
Adds two hooks.
caps-test.php (1.1 KB) - added by ringmaster 11 years ago.
Sample plugin with virtually no functionality, but explains the incoming params.

Download all attachments as: .zip

Change History (6)

@ringmaster
11 years ago

Adds two hooks.

@ringmaster
11 years ago

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

#1 @ringmaster
11 years ago

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

#2 @ryan
11 years ago

  • Milestone set to 2.0

#3 @ryan
11 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

#4 @anonymous
10 years ago

  • Milestone 2.0 deleted

Milestone 2.0 deleted

Note: See TracTickets for help on using tickets.