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:
ryan 2005-09-08 20:39:37 +00:00
parent 54d761eee0
commit 2ddfc1c1d6

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);
}