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

WordPress Trac noreply at wordpress.org
Tue Feb 7 17:24:45 UTC 2017


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

Comment (by kadamwhite):

 There may be a more elegant way to handle testing this, but I added three
 test cases to assert which properties a post has in view, edit and embed
 contexts.

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


More information about the wp-trac mailing list