diff --git a/wp-includes/rest-api.php b/wp-includes/rest-api.php index 988dd9c778..8642460dd8 100644 --- a/wp-includes/rest-api.php +++ b/wp-includes/rest-api.php @@ -1097,6 +1097,9 @@ function rest_sanitize_value_from_schema( $value, $args ) { if ( empty( $args['items'] ) ) { return (array) $value; } + if ( ! is_array( $value ) ) { + $value = preg_split( '/[\s,]+/', $value ); + } foreach ( $value as $index => $v ) { $value[ $index ] = rest_sanitize_value_from_schema( $v, $args['items'] ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index fad2a068e7..a725fc9d98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta1-39060'; +$wp_version = '4.7-beta1-39061'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.