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
This commit is contained in:
nacin 2011-11-05 13:35:48 +00:00
parent fa76992c20
commit 68c443e9ee
1 changed files with 1 additions and 2 deletions

View File

@ -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<br />";
if ( empty( $capabilities[$cap] ) || !$capabilities[$cap] )
if ( empty( $capabilities[ $cap ] ) )
return false;
}