Make WordPress Core


Ignore:
Timestamp:
11/19/2020 06:22:02 PM (5 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/ms-deprecated.php

    r48126 r49672  
    465465 *     Array of default arguments. Optional.
    466466 *
    467  *     @type int|array $network_id A network ID or array of network IDs. Set to null to retrieve sites
     467 *     @type int|int[] $network_id A network ID or array of network IDs. Set to null to retrieve sites
    468468 *                                 from all networks. Defaults to current network ID.
    469469 *     @type int       $public     Retrieve public or non-public sites. Default null, for any.
Note: See TracChangeset for help on using the changeset viewer.