Multisite: Clarify return type of get_sites() when 'count' is passed as a query var.

Fixes #41789.
Built from https://develop.svn.wordpress.org/trunk@41331


git-svn-id: http://core.svn.wordpress.org/trunk@41162 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling 2017-09-04 08:16:44 +00:00
parent c3cf5cb324
commit 2526eb2d86
2 changed files with 2 additions and 2 deletions

View File

@ -630,7 +630,7 @@ function update_site_cache( $sites ) {
* Default empty array. * Default empty array.
* @type bool $update_site_cache Whether to prime the cache for found sites. Default false. * @type bool $update_site_cache Whether to prime the cache for found sites. Default false.
* } * }
* @return array List of sites. * @return array|int List of sites, or number of sites when 'count' is passed as a query var.
*/ */
function get_sites( $args = array() ) { function get_sites( $args = array() ) {
$query = new WP_Site_Query(); $query = new WP_Site_Query();

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.9-alpha-41330'; $wp_version = '4.9-alpha-41331';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.