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:
Ryan Boren 2005-09-22 20:39:37 +00:00
parent 11d854b7ef
commit 24738f1176
1 changed files with 1 additions and 1 deletions

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