mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@49672 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -413,8 +413,8 @@ function update_sitemeta_cache( $site_ids ) {
|
||||
* @param string|array $args {
|
||||
* Optional. Array or query string of site query parameters. Default empty.
|
||||
*
|
||||
* @type array $site__in Array of site IDs to include. Default empty.
|
||||
* @type array $site__not_in Array of site IDs to exclude. Default empty.
|
||||
* @type int[] $site__in Array of site IDs to include. Default empty.
|
||||
* @type int[] $site__not_in Array of site IDs to exclude. Default empty.
|
||||
* @type bool $count Whether to return a site count (true) or array of site objects.
|
||||
* Default false.
|
||||
* @type array $date_query Date query clauses to limit sites by. See WP_Date_Query.
|
||||
@@ -434,8 +434,8 @@ function update_sitemeta_cache( $site_ids ) {
|
||||
* @type string $order How to order retrieved sites. Accepts 'ASC', 'DESC'. Default 'ASC'.
|
||||
* @type int $network_id Limit results to those affiliated with a given network ID. If 0,
|
||||
* include all networks. Default 0.
|
||||
* @type array $network__in Array of network IDs to include affiliated sites for. Default empty.
|
||||
* @type array $network__not_in Array of network IDs to exclude affiliated sites for. Default empty.
|
||||
* @type int[] $network__in Array of network IDs to include affiliated sites for. Default empty.
|
||||
* @type int[] $network__not_in Array of network IDs to exclude affiliated sites for. Default empty.
|
||||
* @type string $domain Limit results to those affiliated with a given domain. Default empty.
|
||||
* @type array $domain__in Array of domains to include affiliated sites for. Default empty.
|
||||
* @type array $domain__not_in Array of domains to exclude affiliated sites for. Default empty.
|
||||
|
||||
Reference in New Issue
Block a user