From 77647aea230b9eb30a0cd3f77b38f567bd16ed38 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 17 Sep 2020 10:35:51 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-network-query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-network-query.php b/src/wp-includes/class-wp-network-query.php index c3d3fa1284..bce18b8ac4 100644 --- a/src/wp-includes/class-wp-network-query.php +++ b/src/wp-includes/class-wp-network-query.php @@ -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.