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
This commit is contained in:
Drew Jaynes 2015-11-10 06:45:25 +00:00
parent 8b3c5fb300
commit 626549448a
2 changed files with 6 additions and 3 deletions

View File

@ -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;

View File

@ -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.