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:
parent
fa76992c20
commit
68c443e9ee
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue