Remove dead code. empty() will catch anything that equals false.
git-svn-id: https://develop.svn.wordpress.org/trunk@19171 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6114e7218d
commit
f1bbad5d5b
@ -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
Block a user