From f3b3ece76a3223af6f9646d15597d773a0e5a08d Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Wed, 13 Jul 2016 05:30:29 +0000 Subject: [PATCH] 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 --- wp-includes/ms-blogs.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index 025b537371..f527989007 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 67fb0d52ee..8098bfde5a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.