Make WordPress Core

Ticket #25645: 25645.2.diff

File 25645.2.diff, 2.7 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 * For each site, an array is returned containing the blog ID, site (network) ID, domain, path,
     2072 * dates registered and modified, and the language ID. Also boolean values for whether the site
     2073 * is public, archived, mature, spam, and/or deleted.
     2074 *
    20712075 * @see wp_is_large_network() Returns an empty array if the install is considered large.
    20722076 *
    20732077 * @since 3.7.0
    20742078 *
    20752079 * @param array $args {
    2076  *     Array of arguments. Optional.
     2080 *     Array of default arguments. Optional.
    20772081 *
    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.
     2082 *     @type int|array $network_id A network ID or array of network IDs. Set to null to retrieve sites
     2083 *                                 from all networks. Defaults to current network ID.
     2084 *     @type int       $public     Retrieve public or non-public sites. Default null, for any.
     2085 *     @type int       $archived   Retrieve archived or non-archived sites. Default null, for any.
     2086 *     @type int       $mature     Retrieve mature or non-mature sites. Default null, for any.
     2087 *     @type int       $spam       Retrieve spam or non-spam sites. Default null, for any.
     2088 *     @type int       $deleted    Retrieve deleted or non-deleted sites. Default null, for any.
     2089 *     @type int       $limit      Number of sites to limit the query to. Default 100.
     2090 *     @type int       $offset     Exclude the first x sites. Used in combination with the $limit parameter. Default 0.
    20872091 * }
    2088  *
    2089  * @return array An array of site data
     2092 * @return array An associative array of site data, one array per site.
    20902093 */
    20912094function wp_get_sites( $args = array() ) {
    20922095        global $wpdb;