diff --git a/wp-includes/version.php b/wp-includes/version.php index 9bec268c30..ac2347473e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52205'; +$wp_version = '5.9-alpha-52206'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 0f54405185..dfca1acdbf 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1395,7 +1395,7 @@ class wpdb { // If args were passed as an array (as in vsprintf), move them up. $passed_as_array = false; - if ( is_array( $args[0] ) && count( $args ) === 1 ) { + if ( isset( $args[0] ) && is_array( $args[0] ) && 1 === count( $args ) ) { $passed_as_array = true; $args = $args[0]; }