Docs: Correct the parameter type for `networks_pre_query` filter.

The filter should return the network count as an integer if `$this->query_vars['count']` is set.

Follow-up to [46100].

See #50768, #47599.
Built from https://develop.svn.wordpress.org/trunk@48984


git-svn-id: http://core.svn.wordpress.org/trunk@48746 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-09-17 10:37:05 +00:00
parent ac00862f44
commit 06e53b90a1
2 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@ class WP_Network_Query {
*
* @since 5.2.0
*
* @param array|null $network_data Return an array of network data to short-circuit WP's network query,
* @param array|int|null $network_data Return an array of network data to short-circuit WP's network query,
* the network count as an integer if `$this->query_vars['count']` is set,
* or null to allow WP to run its normal queries.
* @param WP_Network_Query $this The WP_Network_Query instance, passed by reference.

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.6-alpha-48983';
$wp_version = '5.6-alpha-48984';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.