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
This commit is contained in:
parent
ba94bd62a0
commit
131518542e
|
@ -1966,7 +1966,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
||||||
$schema['properties']['featured_media'] = array(
|
$schema['properties']['featured_media'] = array(
|
||||||
'description' => __( 'The ID of the featured media for the object.' ),
|
'description' => __( 'The ID of the featured media for the object.' ),
|
||||||
'type' => 'integer',
|
'type' => 'integer',
|
||||||
'context' => array( 'view', 'edit' ),
|
'context' => array( 'view', 'edit', 'embed' ),
|
||||||
);
|
);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue