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. git-svn-id: https://develop.svn.wordpress.org/trunk@38042 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
da154081f6
commit
f51e0ae92a
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user