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.

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


git-svn-id: http://core.svn.wordpress.org/trunk@37983 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Jeremy Felt 2016-07-13 05:30:29 +00:00
parent da40e89d06
commit f3b3ece76a
2 changed files with 2 additions and 2 deletions

View File

@ -1073,7 +1073,7 @@ function get_last_updated( $deprecated = '', $start = 0, $quantity = 40 ) {
* for information on accepted arguments. Default empty.
* @return int|array List of networks or number of found networks if `$count` argument is true.
*/
function get_networks( $args = '' ) {
function get_networks( $args = array() ) {
$query = new WP_Network_Query();
return $query->query( $args );

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.6-beta2-38041';
$wp_version = '4.6-beta2-38042';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.