Make WordPress Core

Changeset 48984


Ignore:
Timestamp:
09/17/2020 10:35:51 AM (4 years ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-network-query.php

    r48782 r48984  
    212212         * @since 5.2.0
    213213         *
    214          * @param array|null       $network_data Return an array of network data to short-circuit WP's network query,
     214         * @param array|int|null   $network_data Return an array of network data to short-circuit WP's network query,
    215215         *                                       the network count as an integer if `$this->query_vars['count']` is set,
    216216         *                                       or null to allow WP to run its normal queries.
Note: See TracChangeset for help on using the changeset viewer.