Make WordPress Core

Opened 19 years ago

Closed 19 years ago

#1702 closed defect (bug) (fixed)

$grant setting in WP_Role->add_cap() not stored

Reported by: ringmaster's profile ringmaster Owned by:
Milestone: Priority: normal
Severity: normal Version: 1.6
Component: Administration Keywords:
Focuses: Cc:


WP_Role->add_cap() accepts a $grant parameter with a default, but does not pass that default on to the functions that make the value permanent.

Line 87 should be:
$wp_roles->add_cap($this->name, $cap, $grant);

Change History (1)

#1 @ryan
19 years ago

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

(In [2904]) Pass along grant state when saving cap. Props Owen. fixes #1702

Note: See TracTickets for help on using tickets.