From 131518542e8cd9f700dfde1006cf08736b0c3d51 Mon Sep 17 00:00:00 2001 From: Ryan McCue Date: Wed, 10 May 2017 04:46:43 +0000 Subject: [PATCH] REST API: Include featured_media in embed responses. Props kadamwhite, jnylen0, westonruter. Fixes #39805. Built from https://develop.svn.wordpress.org/trunk@40602 git-svn-id: http://core.svn.wordpress.org/trunk@40472 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 a0d395e429..23017d7c29 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 @@ -1966,7 +1966,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { $schema['properties']['featured_media'] = array( 'description' => __( 'The ID of the featured media for the object.' ), 'type' => 'integer', - 'context' => array( 'view', 'edit' ), + 'context' => array( 'view', 'edit', 'embed' ), ); break; diff --git a/wp-includes/version.php b/wp-includes/version.php index e64bfaa06d..5192b322fd 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.8-alpha-40601'; +$wp_version = '4.8-alpha-40602'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.