Make WordPress Core

Opened 6 years ago

Last modified 2 years ago

#49538 new enhancement

Can't get a subset of `_embedded` using `_fields`

Reported by: iandunn Owned by:
Priority: normal Milestone: Future Release
Component: REST API Version: 5.3
Severity: normal Keywords: needs-patch needs-unit-tests
Cc: Focuses: performance

Description

I'd expect to be able to limit which values get returned in embedded fields, the same way that I can with standard fields. e.g.,

https://wordpress.org/news/wp-json/wp/v2/posts/8384?_fields=slug,_embedded.author.name&_embed

That would make the response faster and smaller.

Attachments (1)

49538.diff (2.4 KB ) - added by iandunn 6 years ago.
WIP

Download all attachments as: .zip

Change History (10)

#1 @TimothyBlynJacobs
6 years ago

  • Keywords needs-patch needs-unit-tests added
  • Milestone Awaiting Review5.5
  • Version5.3

Milestoning for consideration to continue our focus on performance.

@iandunn
6 years ago

WIP

This ticket was mentioned in Slack in #core-restapi by timothybjacobs. View the logs.


6 years ago

#3 @ocean90
6 years ago

Related: #49985

This ticket was mentioned in Slack in #core-restapi by timothybjacobs. View the logs.


6 years ago

#5 @TimothyBlynJacobs
6 years ago

  • Milestone 5.55.6

Punting to 5.6, this still needs more work.

This ticket was mentioned in Slack in #core by hellofromtonya. View the logs.


6 years ago

#7 @TimothyBlynJacobs
6 years ago

  • Milestone 5.6Future Release

Punting back to Future Release, this hasn't seen a lot of activity.

#8 @TimothyBlynJacobs
6 years ago

#51596 was marked as a duplicate.

#9 @pbearne
2 years ago

Is this still needed?

Note: See TracTickets for help on using tickets.