mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@37652 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user