WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/10/2017 04:45:10 AM (3 years ago)
Author:
rmccue
Message:

REST API: Include featured_media in embed responses.

Props kadamwhite, jnylen0, westonruter.
Fixes #39805.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r40571 r40602  
    19671967                        'description' => __( 'The ID of the featured media for the object.' ),
    19681968                        'type'        => 'integer',
    1969                         'context'     => array( 'view', 'edit' ),
     1969                        'context'     => array( 'view', 'edit', 'embed' ),
    19701970                    );
    19711971                    break;
Note: See TracChangeset for help on using the changeset viewer.