Make WordPress Core


Ignore:
Timestamp:
11/19/2020 06:22:02 PM (6 years ago)
Author:
johnbillion
Message:

Docs: Document parameters that accept an array of integers using typed array notation.

While many of these parameters also technically accept an array of numerical strings, they are all ultimately cast to an array of integers. Documenting them as such assists developers in understanding the expected types.

See #51800, #41756

File:
1 edited

Legend:

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

    r49637 r49672  
    155155         *                                             'BETWEEN', 'NOT BETWEEN', 'EXISTS', 'NOT EXISTS', 'REGEXP',
    156156         *                                             'NOT REGEXP', or 'RLIKE'. Default '='.
    157          *     @type array        $include             An array of user IDs to include. Default empty array.
    158          *     @type array        $exclude             An array of user IDs to exclude. Default empty array.
     157         *     @type int[]        $include             An array of user IDs to include. Default empty array.
     158         *     @type int[]        $exclude             An array of user IDs to exclude. Default empty array.
    159159         *     @type string       $search              Search keyword. Searches for possible string matches on columns.
    160160         *                                             When `$search_columns` is left empty, it tries to determine which
Note: See TracChangeset for help on using the changeset viewer.