Make WordPress Core


Ignore:
Timestamp:
05/25/2019 09:58:18 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Switch to the more common syntax for variadic function documentation.

See #37402

File:
1 edited

Legend:

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

    r43651 r45418  
    722722     * @see map_meta_cap()
    723723     *
    724      * @param string $cap           Capability name.
    725      * @param int    $object_id,... Optional. ID of a specific object to check against if `$cap` is a "meta" capability.
    726      *                              Meta capabilities such as `edit_post` and `edit_user` are capabilities used by
    727      *                              by the `map_meta_cap()` function to map to primitive capabilities that a user or
    728      *                              role has, such as `edit_posts` and `edit_others_posts`.
     724     * @param string $cap          Capability name.
     725     * @param int    ...$object_id Optional. ID of a specific object to check against if `$cap` is a "meta" capability.
     726     *                             Meta capabilities such as `edit_post` and `edit_user` are capabilities used by
     727     *                             by the `map_meta_cap()` function to map to primitive capabilities that a user or
     728     *                             role has, such as `edit_posts` and `edit_others_posts`.
    729729     * @return bool Whether the user has the given capability, or, if `$object_id` is passed, whether the user has
    730730     *              the given capability for that object.
Note: See TracChangeset for help on using the changeset viewer.