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
This commit is contained in:
parent
ba6077dc27
commit
505709a833
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user