Changeset 47808 for trunk/src/wp-includes/class-wp-site-query.php
- Timestamp:
- 05/16/2020 06:40:52 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-site-query.php
r47122 r47808 298 298 * The expected return type from this filter depends on the value passed in the request query_vars: 299 299 * When `$this->query_vars['count']` is set, the filter should return the site count as an int. 300 * When `'ids' == $this->query_vars['fields']`, the filter should return an array of site ids.300 * When `'ids' === $this->query_vars['fields']`, the filter should return an array of site ids. 301 301 * Otherwise the filter should return an array of WP_Site objects. 302 302 * … … 354 354 $site_ids = array_map( 'intval', $site_ids ); 355 355 356 if ( 'ids' == $this->query_vars['fields'] ) {356 if ( 'ids' === $this->query_vars['fields'] ) { 357 357 $this->sites = $site_ids; 358 358
Note: See TracChangeset
for help on using the changeset viewer.