Multisite: Remove the output parameter from get_site()

Full `WP_Site` objects should be expected from `get_site()` rather than arrays.

In the single (soon to be deprecated) use of arrays for this in core, we can cast the result to `(array)` for back-compat.

See #35791.

Built from https://develop.svn.wordpress.org/trunk@37652


git-svn-id: http://core.svn.wordpress.org/trunk@37618 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt
2016-06-08 02:48:30 +00:00
parent d75f77a410
commit 75a851a3aa
3 changed files with 4 additions and 13 deletions

View File

@@ -2488,7 +2488,7 @@ function wp_get_sites( $args = array() ) {
$results = array();
foreach ( $_sites as $_site ) {
$results[] = get_site( $_site, ARRAY_A );
$results[] = (array) get_site( $_site );
}
return $results;