Make WordPress Core

Ticket #25645: 25645.diff

File 25645.diff, 2.7 KB (added by DrewAPicture, 11 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 ID, domain, path, date registered and modified,
     2072 * and the language ID. Also boolean values for whether the site is public, archived, mature, spam, or deleted.
     2073 *
    20712074 * @see wp_is_large_network() Returns an empty array if the install is considered large.
    20722075 *
    20732076 * @since 3.7.0
    20742077 *
    20752078 * @param array $args {
    2076  *     Array of arguments. Optional.
     2079 *     Array of default arguments. Optional.
    20772080 *
    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.
     2081 *     @type int|array $network_id A network ID or array of network IDs. Set to null to retrieve sites
     2082 *                                 from all networks. Defaults to current network ID.
     2083 *     @type int       $public     Retrieve public or non-public sites. Default null, for any.
     2084 *     @type int       $archived   Retrieve archived or non-archived sites. Default null, for any.
     2085 *     @type int       $mature     Retrieve mature or non-mature sites. Default null, for any.
     2086 *     @type int       $spam       Retrieve spam or non-spam sites. Default null, for any.
     2087 *     @type int       $deleted    Retrieve deleted or non-deleted sites. Default null, for any.
     2088 *     @type int       $limit      Number of sites to limit the query to. Default 100.
     2089 *     @type int       $offset     Exclude the first x sites. Used in combination with the $limit parameter. Default 0.
    20872090 * }
    2088  *
    2089  * @return array An array of site data
     2091 * @return array An array of site data including the blog_id, site_id, domain, path, and more.
    20902092 */
    20912093function wp_get_sites( $args = array() ) {
    20922094        global $wpdb;