Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 24, 2018. It is now read-only.

Embed links inside items in a collection - #1459

#1459
Merged
rachelbaker merged 3 commits into
developWP-API/WP-API:developfrom
collection-embeddingWP-API/WP-API:collection-embeddingCopy head branch name to clipboard
Aug 5, 2015
Merged

Embed links inside items in a collection#1459
rachelbaker merged 3 commits into
developWP-API/WP-API:developfrom
collection-embeddingWP-API/WP-API:collection-embeddingCopy head branch name to clipboard

Conversation

@rmccue

@rmccue rmccue commented Aug 5, 2015

Copy link
Copy Markdown
Member

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
Copy Markdown
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
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.