Make WordPress Core


Ignore:
Timestamp:
03/22/2018 08:26:06 PM (7 years ago)
Author:
johnbillion
Message:

Docs: Document many more parameters and properties using typed array notation.

See #41756

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r42343 r42871  
    453453             * @since 2.8.0
    454454             *
    455              * @param array  $actions     An array of action links to be displayed.
    456              *                             Default 'Edit', 'Delete' for single site, and
    457              *                             'Edit', 'Remove' for Multisite.
    458              * @param WP_User $user_object WP_User object for the currently-listed user.
     455             * @param string[] $actions     An array of action links to be displayed.
     456             *                              Default 'Edit', 'Delete' for single site, and
     457             *                              'Edit', 'Remove' for Multisite.
     458             * @param WP_User  $user_object WP_User object for the currently listed user.
    459459             */
    460460            $actions = apply_filters( 'user_row_actions', $actions, $user_object );
     
    572572     *
    573573     * @param WP_User $user_object The WP_User object.
    574      * @return array An array of user roles.
     574     * @return string[] An array of user roles.
    575575     */
    576576    protected function get_role_list( $user_object ) {
     
    594594         * @since 4.4.0
    595595         *
    596          * @param array  $role_list   An array of user roles.
    597          * @param WP_User $user_object A WP_User object.
     596         * @param string[] $role_list   An array of user roles.
     597         * @param WP_User  $user_object A WP_User object.
    598598         */
    599599        return apply_filters( 'get_role_list', $role_list, $user_object );
Note: See TracChangeset for help on using the changeset viewer.