From 2ddfc1c1d64ac1925e8bfc13bb1ab5512dab1aa5 Mon Sep 17 00:00:00 2001 From: ryan Date: Thu, 8 Sep 2005 20:39:37 +0000 Subject: [PATCH] remove_cap() fix from mdawaffe. fixes #1608 git-svn-id: http://svn.automattic.com/wordpress/trunk@2851 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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); }