WordPress.org

Make WordPress Core

Changeset 38042


Ignore:
Timestamp:
07/13/2016 05:29:02 AM (3 years ago)
Author:
jeremyfelt
Message:

Multisite: Set default $args to an empty array in get_networks().

The empty string was not incorrect. Using array() here instead makes things a bit more consistent by aligning with get_sites(), get_users(), and get_terms().

See #32504.

File:
1 edited

Legend:

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

    r37985 r38042  
    10741074 * @return int|array List of networks or number of found networks if `$count` argument is true.
    10751075 */
    1076 function get_networks( $args = '' ) {
     1076function get_networks( $args = array() ) {
    10771077    $query = new WP_Network_Query();
    10781078
Note: See TracChangeset for help on using the changeset viewer.