Make WordPress Core


Ignore:
Timestamp:
06/08/2016 02:47:48 AM (10 years ago)
Author:
jeremyfelt
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r37620 r37652  
    24892489
    24902490        foreach ( $_sites as $_site ) {
    2491                 $results[] = get_site( $_site, ARRAY_A );
     2491                $results[] = (array) get_site( $_site );
    24922492        }
    24932493
Note: See TracChangeset for help on using the changeset viewer.