diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 5142efad8c..871e8870bb 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -727,12 +727,12 @@ class wp_xmlrpc_server extends IXR_Server { * * @since 3.4.0 * - * @param string|array $args Sanitize single string or array of strings. - * @param int $count Minimum number of arguments. + * @param array $args An array of arguments to check. + * @param int $count Minimum number of arguments. * @return bool if `$args` contains at least $count arguments. */ protected function minimum_args( $args, $count ) { - if ( count( $args ) < $count ) { + if ( ! is_array( $args ) || count( $args ) < $count ) { $this->error = new IXR_Error( 400, __( 'Insufficient arguments passed to this XML-RPC method.' ) ); return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index 01dce759ee..c4f1f3a367 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46147'; +$wp_version = '5.3-alpha-46148'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.