Make WordPress Core


Ignore:
Timestamp:
10/18/2017 05:38:35 PM (8 years ago)
Author:
jeremyfelt
Message:

Multisite: Document all return types in get_sites().

Adds more complete documentation to get_sites() and the corresponding methods in WP_Site_Query.

Fixes #41789.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-blogs.php

    r41884 r41912  
    637637 *     @type bool         $update_site_cache Whether to prime the cache for found sites. Default true.
    638638 * }
    639  * @return array|int List of sites, or number of sites when 'count' is passed as a query var.
     639 * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
     640 *                   or the number of sites when 'count' is passed as a query var.
    640641 */
    641642function get_sites( $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.