Make WordPress Core


Ignore:
Timestamp:
11/24/2020 09:25:46 PM (5 years ago)
Author:
johnbillion
Message:

Docs: Upgrade more parameters in docblocks to used typed array notation.

See #51800, #41756

File:
1 edited

Legend:

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

    r49672 r49693  
    145145     *                                             to be included in results. Note that this is an inclusive list: users
    146146     *                                             must match *each* role. Default empty.
    147      *     @type array        $role__in            An array of role names. Matched users must have at least one of these
     147     *     @type string[]     $role__in            An array of role names. Matched users must have at least one of these
    148148     *                                             roles. Default empty array.
    149      *     @type array        $role__not_in        An array of role names to exclude. Users matching one or more of these
     149     *     @type string[]     $role__not_in        An array of role names to exclude. Users matching one or more of these
    150150     *                                             roles will not be included in results. Default empty array.
    151151     *     @type string       $meta_key            User meta key. Default empty.
     
    160160     *                                             When `$search_columns` is left empty, it tries to determine which
    161161     *                                             column to search in based on search string. Default empty.
    162      *     @type array        $search_columns      Array of column names to be searched. Accepts 'ID', 'user_login',
     162     *     @type string[]     $search_columns      Array of column names to be searched. Accepts 'ID', 'user_login',
    163163     *                                             'user_email', 'user_url', 'user_nicename', 'display_name'.
    164164     *                                             Default empty array.
     
    198198     *                                             public post types.
    199199     *     @type string       $nicename            The user nicename. Default empty.
    200      *     @type array        $nicename__in        An array of nicenames to include. Users matching one of these
     200     *     @type string[]     $nicename__in        An array of nicenames to include. Users matching one of these
    201201     *                                             nicenames will be included in results. Default empty array.
    202      *     @type array        $nicename__not_in    An array of nicenames to exclude. Users matching one of these
     202     *     @type string[]     $nicename__not_in    An array of nicenames to exclude. Users matching one of these
    203203     *                                             nicenames will not be included in results. Default empty array.
    204204     *     @type string       $login               The user login. Default empty.
    205      *     @type array        $login__in           An array of logins to include. Users matching one of these
     205     *     @type string[]     $login__in           An array of logins to include. Users matching one of these
    206206     *                                             logins will be included in results. Default empty array.
    207      *     @type array        $login__not_in       An array of logins to exclude. Users matching one of these
     207     *     @type string[]     $login__not_in       An array of logins to exclude. Users matching one of these
    208208     *                                             logins will not be included in results. Default empty array.
    209209     * }
Note: See TracChangeset for help on using the changeset viewer.