Make WordPress Core


Ignore:
Timestamp:
10/18/2017 06:12:20 PM (7 years ago)
Author:
flixos90
Message:

Multisite: Document all return types in get_networks().

Adds more complete documentation to get_networks() and the corresponding methods in WP_Network_Query.

Fixes #42260.

File:
1 edited

Legend:

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

    r41686 r41918  
    171171     *
    172172     * @param string|array $query Array or URL query string of parameters.
    173      * @return array|int List of networks, or number of networks when 'count' is passed as a query var.
     173     * @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
     174     *                   or the number of networks when 'count' is passed as a query var.
    174175     */
    175176    public function query( $query ) {
     
    183184     * @since 4.6.0
    184185     *
    185      * @return int|array The list of networks.
     186     * @return array|int List of WP_Network objects, a list of network ids when 'fields' is set to 'ids',
     187     *                   or the number of networks when 'count' is passed as a query var.
    186188     */
    187189    public function get_networks() {
Note: See TracChangeset for help on using the changeset viewer.