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:
ryan 2005-09-22 20:39:37 +00:00
parent e91046317b
commit 34c848fb0a

View File

@ -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) {