remove_cap() fix from mdawaffe. fixes #1608

git-svn-id: https://develop.svn.wordpress.org/trunk@2851 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-09-08 20:39:37 +00:00
parent 9b64414d35
commit 3e618e13be
1 changed files with 1 additions and 1 deletions

View File

@ -189,7 +189,7 @@ class WP_User {
}
function remove_cap($cap) {
if ( empty($this->roles[$cap]) ) return;
if ( empty($this->caps[$cap]) ) return;
unset($this->caps[$cap]);
update_usermeta($this->id, $this->cap_key, $this->caps);
}