Make WordPress Core


Ignore:
Timestamp:
10/26/2019 09:07:10 PM (4 years ago)
Author:
johnbillion
Message:

Docs: Switch more docs over to typed array notation, plus some fixes.

See #48303, #41756

File:
1 edited

Legend:

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

    r46144 r46596  
    148148     * @since 2.0.0
    149149     *
    150      * @param string $role Role name.
     150     * @param string $role         Role name.
    151151     * @param string $display_name Role display name.
    152      * @param array $capabilities List of role capabilities in the above format.
     152     * @param bool[] $capabilities List of capabilities keyed by the capability name,
     153     *                             e.g. array( 'edit_posts' => true, 'delete_posts' => false ).
    153154     * @return WP_Role|void WP_Role object, if role is added.
    154155     */
Note: See TracChangeset for help on using the changeset viewer.