Ticket #1702 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Reported by: ringmaster Assigned to: anonymous
Priority: normal Milestone:
Component: Administration Version: 1.6
Severity: normal Keywords:
Cc:

Description

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

09/22/05 20:39:38 changed by ryan

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

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