From c662bb84dc6b5cf50cbc7fab64bc6255cebbf455 Mon Sep 17 00:00:00 2001 From: Joe Hoyle Date: Thu, 24 Nov 2016 00:08:31 +0000 Subject: [PATCH] =?UTF-8?q?REST=20API:=20Special=20case=20the=20=E2=80=9Cs?= =?UTF-8?q?tandard=E2=80=9D=20post=20format=20to=20always=20be=20allowed.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes #38916. Built from https://develop.svn.wordpress.org/trunk@39353 git-svn-id: http://core.svn.wordpress.org/trunk@39293 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../rest-api/endpoints/class-wp-rest-posts-controller.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index d249ab81f5..e0cdc79a2f 100644 --- a/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -1908,7 +1908,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { $schema['properties']['format'] = array( 'description' => __( 'The format for the object.' ), 'type' => 'string', - 'enum' => $supports_formats ? array_values( $supports_formats[0] ) : array(), + 'enum' => array_merge( array( 'standard' ), $supports_formats ? array_values( $supports_formats[0] ) : array() ), 'context' => array( 'view', 'edit' ), ); break; diff --git a/wp-includes/version.php b/wp-includes/version.php index ae0be4b61b..53234e0463 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.7-beta4-39352'; +$wp_version = '4.7-beta4-39353'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.