Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Embed links inside items in a collection #1459

Merged
merged 3 commits into from
Aug 5, 2015
Merged

Conversation

rmccue
Copy link
Member

@rmccue rmccue commented Aug 5, 2015

See #865

This is a very simple approach. Essentially: if you return a list from your endpoint, apply embed_links to the items inside that rather than the top-level.

If we switch collections to objects, we can handle this differently, but that's a separate issue at #1196.

@rachelbaker
Copy link
Member

@rmccue well the PHPCS task is still working :P https://travis-ci.org/WP-API/WP-API/jobs/74231936

rachelbaker added a commit that referenced this pull request Aug 5, 2015
Embed links inside items in a collection
@rachelbaker rachelbaker merged commit 002435f into develop Aug 5, 2015
@rachelbaker
Copy link
Member

Merged #1459

@rmccue rmccue deleted the collection-embedding branch August 5, 2015 16:25
kwight added a commit to kwight/wp-api-theming that referenced this pull request Sep 7, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants