Make WordPress Core

Ticket #25645: 25645.3.diff

File 25645.3.diff, 2.8 KB (added by DrewAPicture, 13 years ago)
  • src/wp-includes/ms-functions.php

     
    20682068/**
    20692069 * Return an array of sites for a network.
    20702070 *
    2071  * @see wp_is_large_network() Returns an empty array if the install is considered large.
    2072  *
    20732071 * @since 3.7.0
    20742072 *
    20752073 * @param array $args {
    2076  *     Array of arguments. Optional.
     2074 *     Array of default arguments. Optional.
    20772075 *
    2078  *     @type int|array 'network_id' A network ID or array of network IDs. Set to null to retrieve sites
    2079  *                                  from all networks. Defaults to current network ID.
    2080  *     @type int       'public'     Retrieve public or non-public sites. Default null, for any.
    2081  *     @type int       'archived'   Retrieve archived or non-archived sites. Default null, for any.
    2082  *     @type int       'mature'     Retrieve mature or non-mature sites. Default null, for any.
    2083  *     @type int       'spam'       Retrieve spam or non-spam sites. Default null, for any.
    2084  *     @type int       'deleted'    Retrieve deleted or non-deleted sites. Default null, for any.
    2085  *     @type int       'limit'      Number of sites to limit the query to. Default 100.
    2086  *     @type int       'offset'     Exclude the first x sites. Used in combination with the limit parameter. Default 0.
     2076 *     @type int|array $network_id A network ID or array of network IDs. Set to null to retrieve sites
     2077 *                                 from all networks. Defaults to current network ID.
     2078 *     @type int       $public     Retrieve public or non-public sites. Default null, for any.
     2079 *     @type int       $archived   Retrieve archived or non-archived sites. Default null, for any.
     2080 *     @type int       $mature     Retrieve mature or non-mature sites. Default null, for any.
     2081 *     @type int       $spam       Retrieve spam or non-spam sites. Default null, for any.
     2082 *     @type int       $deleted    Retrieve deleted or non-deleted sites. Default null, for any.
     2083 *     @type int       $limit      Number of sites to limit the query to. Default 100.
     2084 *     @type int       $offset     Exclude the first x sites. Used in combination with the $limit parameter. Default 0.
    20872085 * }
    2088  *
    2089  * @return array An array of site data
     2086 * @return array An empty array if the install is considered "large" via wp_is_large_network(). Otherwise,
     2087 *               an associative array of site data, each site array containing the site (network) ID, blog ID,
     2088 *               site domain and path, dates registered and modified, and the language ID. Also, boolean values
     2089 *               for whether the site is public, archived, mature, spam, and/or deleted.
    20902090 */
    20912091function wp_get_sites( $args = array() ) {
    20922092        global $wpdb;