From 68c443e9ee2505b41c63f8380a0d67cabfd2a19f Mon Sep 17 00:00:00 2001 From: nacin Date: Sat, 5 Nov 2011 13:35:48 +0000 Subject: [PATCH] Remove dead code. empty() will catch anything that equals false. git-svn-id: http://svn.automattic.com/wordpress/trunk@19171 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/capabilities.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/capabilities.php b/wp-includes/capabilities.php index b93e2a8f53..96518586f8 100644 --- a/wp-includes/capabilities.php +++ b/wp-includes/capabilities.php @@ -858,8 +858,7 @@ class WP_User { $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args ); $capabilities['exist'] = true; // Everyone is allowed to exist foreach ( (array) $caps as $cap ) { - //echo "Checking cap $cap
"; - if ( empty( $capabilities[$cap] ) || !$capabilities[$cap] ) + if ( empty( $capabilities[ $cap ] ) ) return false; }