Make WordPress Core

Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#35613 closed enhancement (duplicate)

Add granularity to REST API embeds

Reported by: jnylen0 Owned by: joehoyle
Priority: normal Milestone:
Component: REST API Version:
Severity: normal Keywords: needs-patch needs-unit-tests
Cc: Focuses: performance

Description

Currently ?_embed is all or nothing. It'd be good to have some granularity here, for example specifying ?_embed=author if we need just the post author but don’t want the performance hit of embedding everything else.

@joehoyle wrote a plugin for this ( ​https://gist.github.com/joehoyle/12e37c293adf2bb0ea1b ) and mentioned that it will be easier to use after #34729 lands.

Change History (9)

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


11 years ago

#2 @danielbachhuber
11 years ago

  • Keywords needs-patch needs-unit-tests added
  • Milestone Awaiting Review → 4.5

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


11 years ago

#4 @chriscct7
11 years ago

  • Owner set to joehoyle
  • Status new → assigned

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


11 years ago

#6 @jorbin
11 years ago

  • Milestone 4.5 → Future Release

#7 @chriscct7
11 years ago

  • Version trunk

#8 @jnylen0
10 years ago

  • Milestone Future Release
  • Resolution → duplicate
  • Status assigned → closed

Duplicate of #39696.

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


10 years ago

Note: See TracTickets for help on using tickets.