remove_cap() fix from mdawaffe. fixes #1608
git-svn-id: http://svn.automattic.com/wordpress/trunk@2851 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54d761eee0
commit
2ddfc1c1d6
|
@ -189,7 +189,7 @@ class WP_User {
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_cap($cap) {
|
function remove_cap($cap) {
|
||||||
if ( empty($this->roles[$cap]) ) return;
|
if ( empty($this->caps[$cap]) ) return;
|
||||||
unset($this->caps[$cap]);
|
unset($this->caps[$cap]);
|
||||||
update_usermeta($this->id, $this->cap_key, $this->caps);
|
update_usermeta($this->id, $this->cap_key, $this->caps);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue