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/class-wp-network-query.php

    r49538 r49672  
    9090     *     Optional. Array or query string of network query parameters. Default empty.
    9191     *
    92      *     @type array        $network__in          Array of network IDs to include. Default empty.
    93      *     @type array        $network__not_in      Array of network IDs to exclude. Default empty.
     92     *     @type int[]        $network__in          Array of network IDs to include. Default empty.
     93     *     @type int[]        $network__not_in      Array of network IDs to exclude. Default empty.
    9494     *     @type bool         $count                Whether to return a network count (true) or array of network objects.
    9595     *                                              Default false.
Note: See TracChangeset for help on using the changeset viewer.