Make WordPress Core


Ignore:
Timestamp:
10/18/2017 05:38:35 PM (9 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/class-wp-site-query.php

    r41795 r41912  
    212212     *
    213213     * @param string|array $query Array or URL query string of parameters.
    214      * @return array|int List of WP_Site objects, or number of sites when 'count' is passed as a query var.
     214     * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
     215     *                   or the number of sites when 'count' is passed as a query var.
    215216     */
    216217    public function query( $query ) {
     
    225226     * @since 4.6.0
    226227     *
    227      * @return array|int List of WP_Site objects, or number of sites when 'count' is passed as a query var.
     228     * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',
     229     *                   or the number of sites when 'count' is passed as a query var.
    228230     */
    229231    public function get_sites() {
Note: See TracChangeset for help on using the changeset viewer.