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/author-template.php

    r48576 r49672  
    406406 *                                       will be separated by commas.
    407407 *     @type bool         $html          Whether to list the items in HTML form or plaintext. Default true.
    408  *     @type array|string $exclude       Array or comma/space-separated list of author IDs to exclude. Default empty.
    409  *     @type array|string $include       Array or comma/space-separated list of author IDs to include. Default empty.
     408 *     @type int[]|string $exclude       Array or comma/space-separated list of author IDs to exclude. Default empty.
     409 *     @type int[]|string $include       Array or comma/space-separated list of author IDs to include. Default empty.
    410410 * }
    411411 * @return void|string Void if 'echo' argument is true, list of authors if 'echo' is false.
Note: See TracChangeset for help on using the changeset viewer.