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.

git-svn-id: https://develop.svn.wordpress.org/trunk@48984 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2020-09-17 10:35:51 +00:00
parent 9cb0da3754
commit 77647aea23

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.