[wp-trac] [WordPress Trac] #59552: Rest api not returns embedded data, if i use at least one field.
WordPress Trac
noreply at wordpress.org
Fri Oct 6 11:36:00 UTC 2023
#59552: Rest api not returns embedded data,if i use at least one field.
-----------------------------+------------------------------
Reporter: sashakozlovskiy | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: | Focuses: rest-api
-----------------------------+------------------------------
Comment (by spacedmonkey):
@sashakozlovskiy In your request, you are not requesting the _embedded
fields. It works if you add that
https://2019.xn----jtbhavgci6f.xn--p1ai/wp-
json/wp/v2/posts/5926/?_fields=content,_embedded&_embed=author,wp:term
This changed in core back in 2022, see the
[https://make.wordpress.org/core/2022/10/10/performance-improvements-to-
the-rest-api/ original] make blog post.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59552#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list