#1561 closed defect (bug) (fixed)
General capabilities.php bugs.
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.6 |
Component: | Security | Keywords: | bg|has-patch bg|commit |
Focuses: | Cc: |
Description
Bad Owen, introducing bugs into WordPress...
The is_role() method on WP_Roles doens't actually check for roles.
The filter used to get roles from the user's caps is broken because it filtered the cap values, not the cap keys, which is where the role names are stored.
The resulting filtered list becomes value-centric, not key-centric, cascading some changes.
Patch attached.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
patch for mentioned issues