From 3e618e13be609ac053372b67cd2fa60b0c9dbae5 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Thu, 8 Sep 2005 20:39:37 +0000 Subject: [PATCH] remove_cap() fix from mdawaffe. fixes #1608 git-svn-id: https://develop.svn.wordpress.org/trunk@2851 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/capabilities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index 90d2e95101..d621947a31 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -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); }