Ticket #1561 (closed defect: fixed)

Opened 3 years ago

Last modified 2 years ago

General capabilities.php bugs.

Reported by: ringmaster Assigned to: markjaquith
Priority: normal Milestone:
Component: Security Version: 1.6
Severity: normal Keywords: bg|has-patch bg|commit
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

capabilities.php.diff (1.1 kB) - added by ringmaster on 08/08/05 16:30:11.
patch for mentioned issues

Change History

08/08/05 16:30:11 changed by ringmaster

  • attachment capabilities.php.diff added.

patch for mentioned issues

08/09/05 20:13:05 changed by markjaquith

  • keywords set to bg|has-patch bg|commit.
  • owner changed from anonymous to markjaquith.
  • status changed from new to assigned.
  • milestone set to 1.6.

I'm trusting that Owen knows what he's talking about. ;-)

08/20/05 01:37:42 changed by ryan

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [2793]) Capabilities fixes from the O man. fixes #1561

11/30/06 19:41:47 changed by

  • milestone deleted.

Milestone 2.0 deleted