diff --git a/wp-includes/class-wp-user.php b/wp-includes/class-wp-user.php index 46c248ad92..91dc5a7e93 100644 --- a/wp-includes/class-wp-user.php +++ b/wp-includes/class-wp-user.php @@ -738,9 +738,12 @@ class WP_User { * @param array $args Optional parameters passed to has_cap(), typically object ID. * @param WP_User $user The user object. */ - // Must have ALL requested caps $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this ); - $capabilities['exist'] = true; // Everyone is allowed to exist + + // Everyone is allowed to exist. + $capabilities['exist'] = true; + + // Must have ALL requested caps. foreach ( (array) $caps as $cap ) { if ( empty( $capabilities[ $cap ] ) ) return false; diff --git a/wp-includes/version.php b/wp-includes/version.php index 006afdc093..70534a7497 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-beta3-35597'; +$wp_version = '4.4-beta3-35598'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.