From 2526eb2d866d5f5c63427c32b82065e613610212 Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Mon, 4 Sep 2017 08:16:44 +0000 Subject: [PATCH] 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 --- wp-includes/ms-blogs.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index a3f40b8358..7ea6685080 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -630,7 +630,7 @@ function update_site_cache( $sites ) { * Default empty array. * @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() ) { $query = new WP_Site_Query(); diff --git a/wp-includes/version.php b/wp-includes/version.php index a7f4e7549f..61b6c73a8c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @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.