mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Pass along grant state when saving cap. Props Owen. fixes #1702
git-svn-id: http://svn.automattic.com/wordpress/trunk@2904 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e91046317b
commit
34c848fb0a
@ -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…
Reference in New Issue
Block a user