[wp-trac] [WordPress Trac] #51596: Posts embedded in search results are incomplete

WordPress Trac noreply at wordpress.org
Thu Oct 22 00:23:12 UTC 2020


#51596: Posts embedded in search results are incomplete
-------------------------+------------------------
 Reporter:  iandunn      |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  REST API     |     Version:
 Severity:  normal       |  Resolution:  duplicate
 Keywords:               |     Focuses:
-------------------------+------------------------
Changes (by TimothyBlynJacobs):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Embeds only return fields that have the `embed` context. You can add
 `embed` to the `context` specified in the schema using the
 `"rest_{$this->post_type}_item_schema"` filter.

 I think we should handle this in #49538 and expand that to allow including
 fields that were omitted.

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


More information about the wp-trac mailing list