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 | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 1.6 |
Component: | Administration | Keywords: | |
Focuses: | 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);
Note: See
TracTickets for help on using
tickets.
(In [2904]) Pass along grant state when saving cap. Props Owen. fixes #1702