Changeset 59009 for trunk/src/wp-includes/class-wp-site-query.php
- Timestamp:
- 09/11/2024 12:06:15 PM (18 months ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/class-wp-site-query.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-site-query.php
r58454 r59009 264 264 * 265 265 * @param string|array $query Array or URL query string of parameters. 266 * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',267 * or the number of sites when 'count' is passed as a query var.266 * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids', 267 * or the number of sites when 'count' is passed as a query var. 268 268 */ 269 269 public function query( $query ) { … … 280 280 * @global wpdb $wpdb WordPress database abstraction object. 281 281 * 282 * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids',283 * or the number of sites when 'count' is passed as a query var.282 * @return WP_Site[]|int[]|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids', 283 * or the number of sites when 'count' is passed as a query var. 284 284 */ 285 285 public function get_sites() { … … 334 334 * of the current WP_Site_Query instance. 335 335 * 336 * @param array|int|null $site_data Return an array of site data to short-circuit WP's site query,337 * the site count as an integer if `$this->query_vars['count']` is set,338 * or null to run the normal queries.339 * @param WP_Site_Query $query The WP_Site_Query instance, passed by reference.336 * @param WP_Site[]|int[]|int|null $site_data Return an array of site data to short-circuit WP's site query, 337 * the site count as an integer if `$this->query_vars['count']` is set, 338 * or null to run the normal queries. 339 * @param WP_Site_Query $query The WP_Site_Query instance, passed by reference. 340 340 */ 341 341 $site_data = apply_filters_ref_array( 'sites_pre_query', array( $site_data, &$this ) );
Note: See TracChangeset
for help on using the changeset viewer.