Make WordPress Core


Ignore:
Timestamp:
07/23/2020 09:53:43 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Miscellaneous DocBlock corrections.

See #49572.

File:
1 edited

Legend:

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

    r48590 r48591  
    5757     *
    5858     * @since 2.0.0
    59      * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values
    60      *             represent whether the user has that capability.
     59     * @var bool[] Array of key/value pairs where keys represent a capability name
     60     *             and boolean values represent whether the user has that capability.
    6161     */
    6262    public $caps = array();
     
    8282     *
    8383     * @since 2.0.0
    84      * @var bool[] Array of key/value pairs where keys represent a capability name and boolean values
    85      *             represent whether the user has that capability.
     84     * @var bool[] Array of key/value pairs where keys represent a capability name
     85     *             and boolean values represent whether the user has that capability.
    8686     */
    8787    public $allcaps = array();
     
    483483
    484484    /**
    485      * Retrieves all of the capabilities of the roles of the user, and merges them with individual user capabilities.
    486      *
    487      * All of the capabilities of the roles of the user are merged with the user's individual capabilities. This means
    488      * that the user can be denied specific capabilities that their role might have, but the user is specifically denied.
    489      *
    490      * @since 2.0.0
    491      *
    492      * @return bool[] Array of key/value pairs where keys represent a capability name and boolean values
    493      *                represent whether the user has that capability.
     485     * Retrieves all of the capabilities of the user's roles, and merges them with
     486     * individual user capabilities.
     487     *
     488     * All of the capabilities of the user's roles are merged with the user's individual
     489     * capabilities. This means that the user can be denied specific capabilities that
     490     * their role might have, but the user is specifically denied.
     491     *
     492     * @since 2.0.0
     493     *
     494     * @return bool[] Array of key/value pairs where keys represent a capability name
     495     *                and boolean values represent whether the user has that capability.
    494496     */
    495497    public function get_role_caps() {
     
    767769         * @since 3.7.0 Added the `$user` parameter.
    768770         *
    769          * @param bool[]   $allcaps Array of key/value pairs where keys represent a capability name and boolean values
    770          *                          represent whether the user has that capability.
     771         * @param bool[]   $allcaps Array of key/value pairs where keys represent a capability name
     772         *                          and boolean values represent whether the user has that capability.
    771773         * @param string[] $caps    Required primitive capabilities for the requested capability.
    772774         * @param array    $args {
Note: See TracChangeset for help on using the changeset viewer.