mirror of
git://develop.git.wordpress.org/
synced 2025-01-19 13:47:02 +01:00
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;
|
||||
|
||||
$this->capabilities[$cap] = $grant;
|
||||
$wp_roles->add_cap($this->name, $cap);
|
||||
$wp_roles->add_cap($this->name, $cap, $grant);
|
||||
}
|
||||
|
||||
function remove_cap($cap) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user