Pass along grant state when saving cap. Props Owen. fixes #1702
git-svn-id: https://develop.svn.wordpress.org/trunk@2904 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
11d854b7ef
commit
24738f1176
|
@ -84,7 +84,7 @@ class WP_Role {
|
||||||
global $wp_roles;
|
global $wp_roles;
|
||||||
|
|
||||||
$this->capabilities[$cap] = $grant;
|
$this->capabilities[$cap] = $grant;
|
||||||
$wp_roles->add_cap($this->name, $cap);
|
$wp_roles->add_cap($this->name, $cap, $grant);
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_cap($cap) {
|
function remove_cap($cap) {
|
||||||
|
|
Loading…
Reference in New Issue