Make WordPress Core

Ticket #41789: 41789.diff

File 41789.diff, 1.8 KB (added by jeremyfelt, 7 years ago)
  • src/wp-includes/class-wp-site-query.php

     
    211211         * @since 4.6.0
    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 ) {
    217218                $this->query_vars = wp_parse_args( $query );
     
    224225         *
    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() {
    230232                $this->parse_query();
  • src/wp-includes/ms-blogs.php

     
    636636 *                                           Default empty array.
    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() ) {
    642643        $query = new WP_Site_Query();