WordPress.org

Make WordPress Core

Changeset 38008


Ignore:
Timestamp:
07/07/16 20:35:02 (12 months ago)
Author:
jeremyfelt
Message:

Docs: Correct the description of the $network_id in WP_Site_Query.

Passing 0 for network_id results in a query across all networks.

See #35791.

File:
1 edited

Legend:

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

    r38002 r38008  
    124124     *                                           Default 'id'. 
    125125     *     @type string       $order             How to order retrieved sites. Accepts 'ASC', 'DESC'. Default 'ASC'. 
    126      *     @type int          $network_id        Limit results to those affiliated with a given network ID. 
    127      *                                           Default current network ID. 
     126     *     @type int          $network_id        Limit results to those affiliated with a given network ID. If 0, 
     127     *                                           include all networks. Default 0. 
    128128     *     @type array        $network__in       Array of network IDs to include affiliated sites for. Default empty. 
    129129     *     @type array        $network__not_in   Array of network IDs to exclude affiliated sites for. Default empty. 
Note: See TracChangeset for help on using the changeset viewer.