Make WordPress Core


Ignore:
Timestamp:
06/28/2020 11:47:45 AM (19 months ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for optional parameters per the documentation standards.

See #49572.

File:
1 edited

Legend:

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

    r47219 r48197  
    202202     *
    203203     * @param string $role Role name.
    204      * @param string $cap Capability name.
    205      * @param bool $grant Optional, default is true. Whether role is capable of performing capability.
     204     * @param string $cap  Capability name.
     205     * @param bool $grant  Optional. Whether role is capable of performing capability.
     206     *                     Default true.
    206207     */
    207208    public function add_cap( $role, $cap, $grant = true ) {
     
    222223     *
    223224     * @param string $role Role name.
    224      * @param string $cap Capability name.
     225     * @param string $cap  Capability name.
    225226     */
    226227    public function remove_cap( $role, $cap ) {
Note: See TracChangeset for help on using the changeset viewer.