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:
parent
9b64414d35
commit
3e618e13be
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user