Make WordPress Core


Ignore:
Timestamp:
05/23/2022 02:59:44 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Use third-person singular verbs for method descriptions in wp-includes/class-wp-roles.php, per the documentation standards.

See #55646.

File:
1 edited

Legend:

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

    r53408 r53436  
    10211021 * @param bool[] $capabilities List of capabilities keyed by the capability name,
    10221022 *                             e.g. array( 'edit_posts' => true, 'delete_posts' => false ).
    1023  * @return WP_Role|null WP_Role object if role is added, null if already exists.
     1023 * @return WP_Role|void WP_Role object, if the role is added.
    10241024 */
    10251025function add_role( $role, $display_name, $capabilities = array() ) {
     
    10271027        return;
    10281028    }
     1029
    10291030    return wp_roles()->add_role( $role, $display_name, $capabilities );
    10301031}
Note: See TracChangeset for help on using the changeset viewer.