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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user