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/capabilities.php

    r46451 r46596  
    808808 * @since 2.0.0
    809809 *
    810  * @param string $role Role name.
     810 * @param string $role         Role name.
    811811 * @param string $display_name Display name for role.
    812  * @param array $capabilities List of capabilities, e.g. array( 'edit_posts' => true, 'delete_posts' => false );
     812 * @param bool[] $capabilities List of capabilities keyed by the capability name,
     813 *                             e.g. array( 'edit_posts' => true, 'delete_posts' => false ).
    813814 * @return WP_Role|null WP_Role object if role is added, null if already exists.
    814815 */
Note: See TracChangeset for help on using the changeset viewer.