Docs: Move an inline comment that was preventing the hook docs for the `user_has_cap` filter from being parsed.
Props ocean90. Fixes #34639. git-svn-id: https://develop.svn.wordpress.org/trunk@35598 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bcbe8ae224
commit
092c62e738
|
@ -738,9 +738,12 @@ class WP_User {
|
||||||
* @param array $args Optional parameters passed to has_cap(), typically object ID.
|
* @param array $args Optional parameters passed to has_cap(), typically object ID.
|
||||||
* @param WP_User $user The user object.
|
* @param WP_User $user The user object.
|
||||||
*/
|
*/
|
||||||
// Must have ALL requested caps
|
|
||||||
$capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );
|
$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 ) {
|
foreach ( (array) $caps as $cap ) {
|
||||||
if ( empty( $capabilities[ $cap ] ) )
|
if ( empty( $capabilities[ $cap ] ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue