WordPress.org

Make WordPress Core

Changeset 35598


Ignore:
Timestamp:
11/10/2015 06:44:51 AM (6 years ago)
Author:
DrewAPicture
Message:

Docs: Move an inline comment that was preventing the hook docs for the user_has_cap filter from being parsed.

Props ocean90.
Fixes #34639.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-user.php

    r35548 r35598  
    739739         * @param WP_User $user    The user object.
    740740         */
    741         // Must have ALL requested caps
    742741        $capabilities = apply_filters( 'user_has_cap', $this->allcaps, $caps, $args, $this );
    743         $capabilities['exist'] = true; // Everyone is allowed to exist
     742
     743        // Everyone is allowed to exist.
     744        $capabilities['exist'] = true;
     745
     746        // Must have ALL requested caps.
    744747        foreach ( (array) $caps as $cap ) {
    745748            if ( empty( $capabilities[ $cap ] ) )
Note: See TracChangeset for help on using the changeset viewer.