Ticket #41789: 41789.diff
File 41789.diff, 1.8 KB (added by , 7 years ago) |
---|
-
src/wp-includes/class-wp-site-query.php
211 211 * @since 4.6.0 212 212 * 213 213 * @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. 215 216 */ 216 217 public function query( $query ) { 217 218 $this->query_vars = wp_parse_args( $query ); … … 224 225 * 225 226 * @since 4.6.0 226 227 * 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. 228 230 */ 229 231 public function get_sites() { 230 232 $this->parse_query(); -
src/wp-includes/ms-blogs.php
636 636 * Default empty array. 637 637 * @type bool $update_site_cache Whether to prime the cache for found sites. Default true. 638 638 * } 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. 640 641 */ 641 642 function get_sites( $args = array() ) { 642 643 $query = new WP_Site_Query();