From 505709a833c19d8b78798dbd93c340d808047994 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Mon, 4 Sep 2017 08:15:32 +0000 Subject: [PATCH] Multisite: Clarify return type of `get_sites()` when 'count' is passed as a query var. Fixes #41789. git-svn-id: https://develop.svn.wordpress.org/trunk@41331 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-blogs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/ms-blogs.php b/src/wp-includes/ms-blogs.php index a3f40b8358..7ea6685080 100644 --- a/src/wp-includes/ms-blogs.php +++ b/src/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();