[wp-trac] [WordPress Trac] #39805: Expose featured_media property on post resources in "embed" context

WordPress Trac noreply at wordpress.org
Wed May 10 04:39:07 UTC 2017


#39805: Expose featured_media property on post resources in "embed" context
---------------------------------------------+-----------------------------
 Reporter:  kadamwhite                       |       Owner:  rmccue
     Type:  enhancement                      |      Status:  reviewing
 Priority:  normal                           |   Milestone:  Awaiting
Component:  REST API                         |  Review
 Severity:  normal                           |     Version:  trunk
 Keywords:  has-patch has-unit-tests commit  |  Resolution:
                                             |     Focuses:
---------------------------------------------+-----------------------------
Changes (by rmccue):

 * owner:   => rmccue
 * status:  new => reviewing


Comment:

 Replying to [comment:6 jnylen0]:
 > I wonder why the `embed` context is such a small subset of data compared
 to `view`?  There are other elements which could potentially be useful.

 The `embed` context was intended for data you'd want if embedding the
 object on a page (such as an oEmbed item, sidebar widget, search result,
 etc). Makes sense to include the featured media for that.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39805#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list