From 626549448a4a8cdb62086aaf50f45c5e08833e8a Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Tue, 10 Nov 2015 06:45:25 +0000 Subject: [PATCH] Docs: Move an inline comment that was preventing the hook docs for the `user_has_cap` filter from being parsed. Props ocean90. Fixes #34639. Built from https://develop.svn.wordpress.org/trunk@35598 git-svn-id: http://core.svn.wordpress.org/trunk@35562 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-user.php | 7 +++++-- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) 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.