diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index dc359aec50..988dd9c778 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -996,7 +996,7 @@ function rest_get_avatar_sizes() { function rest_validate_value_from_schema( $value, $args, $param = '' ) { if ( 'array' === $args['type'] ) { if ( ! is_array( $value ) ) { - return new WP_Error( 'rest_invalid_param', sprintf( /* translators: 1: parameter, 2: type name */ __( '%1$s is not of type %2$s.' ), $param, 'array' ) ); + $value = preg_split( '/[\s,]+/', $value ); } foreach ( $value as $index => $v ) { $is_valid = rest_validate_value_from_schema( $v, $args['items'], $param . '[' . $index . ']' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index b88dadb97f..6852e78015 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39047'; +$wp_version = '4.7-beta1-39048'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.