Make WordPress Core


Ignore:
Timestamp:
08/27/2018 02:27:22 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve various inline documentation.

See #42505

File:
1 edited

Legend:

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

    r43571 r43582  
    8181     *
    8282     * @since 2.0.0
    83      * @var array
     83     * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values
     84     *             represent whether the user has that capability.
    8485     */
    8586    public $allcaps = array();
     
    479480
    480481    /**
    481      * Retrieve all of the role capabilities and merge with individual capabilities.
    482      *
    483      * All of the capabilities of the roles the user belongs to are merged with
    484      * user's individual capabilities. This also means that the user can be denied
    485      * specific capabilities that their role might have, but the user isn't granted
    486      * permission to.
    487      *
    488      * @since 2.0.0
    489      *
    490      * @return array List of all capabilities for the user.
     482     * Retrieves all of the capabilities of the roles of the user, and merges them with individual user capabilities.
     483     *
     484     * All of the capabilities of the roles of the user are merged with the user's individual capabilities. This means
     485     * that the user can be denied specific capabilities that their role might have, but the user is specifically denied.
     486     *
     487     * @since 2.0.0
     488     *
     489     * @return bool[] Array of key/value pairs where keys represent a capability name and boolean values
     490     *                represent whether the user has that capability.
    491491     */
    492492    public function get_role_caps() {
     
    752752         *
    753753         * @since 2.0.0
    754          * @since 3.7.0 Added the user object.
     754         * @since 3.7.0 Added the `$user` parameter.
    755755         *
    756          * @param bool[]   $allcaps An array of all the user's capabilities.
    757          * @param string[] $caps    Actual capabilities for meta capability.
    758          * @param array    $args    Optional parameters passed to has_cap(), typically object ID.
     756         * @param bool[]   $allcaps Array of key/value pairs where keys represent a capability name and boolean values
     757         *                          represent whether the user has that capability.
     758         * @param string[] $caps    Required primitive capabilities for the requested capability.
     759         * @param array    $args {
     760         *     Arguments that accompany the requested capability check.
     761         *
     762         *     @type string    $0 Requested capability.
     763         *     @type int       $1 Concerned user ID.
     764         *     @type mixed  ...$2 Optional second and further parameters, typically object ID.
     765         * }
    759766         * @param WP_User  $user    The user object.
    760767         */
Note: See TracChangeset for help on using the changeset viewer.