Changeset 48104 for trunk/src/wp-includes/class-wp-site-query.php
- Timestamp:
- 06/20/2020 12:00:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-site-query.php
r47808 r48104 246 246 * 247 247 * @param string|array $query Array or URL query string of parameters. 248 * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',248 * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids', 249 249 * or the number of sites when 'count' is passed as a query var. 250 250 */ … … 262 262 * @global wpdb $wpdb WordPress database abstraction object. 263 263 * 264 * @return array|int List of WP_Site objects, a list of site ids when 'fields' is set to 'ids',264 * @return array|int List of WP_Site objects, a list of site IDs when 'fields' is set to 'ids', 265 265 * or the number of sites when 'count' is passed as a query var. 266 266 */ … … 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 *
Note: See TracChangeset
for help on using the changeset viewer.