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.

Allow Terms Collection Params to be Filtered - #1882

#1882
Merged
danielbachhuber merged 2 commits into
developWP-API/WP-API:developfrom
fix-terms-pagination-headersWP-API/WP-API:fix-terms-pagination-headersCopy head branch name to clipboard
Jan 4, 2016
Merged

Allow Terms Collection Params to be Filtered#1882
danielbachhuber merged 2 commits into
developWP-API/WP-API:developfrom
fix-terms-pagination-headersWP-API/WP-API:fix-terms-pagination-headersCopy head branch name to clipboard

Conversation

@rachelbaker

Copy link
Copy Markdown
Member

Adds a filter for the prepared_args before passing them to get_terms() (matching behavior to the Posts and Users collections), and then adjusting the pagination headers so that the prepared_args are used instead of only the Request params.

See #1878

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This filter naming matches other similar filters, but pre_rest_terms_query would be a better match for Core's naming convention. @rmccue @joehoyle thoughts? Should we change these now for Posts, Users, etc?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have a strong preference either way, but renaming would make sense to me.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Created a separate issue for this #1937

@rachelbaker rachelbaker added this to the 2.0 Beta 10 milestone Dec 21, 2015
danielbachhuber added a commit that referenced this pull request Jan 4, 2016
Allow Terms Collection Params to be Filtered
@danielbachhuber
danielbachhuber merged commit 41f35f0 into develop Jan 4, 2016
@danielbachhuber
danielbachhuber deleted the fix-terms-pagination-headers branch January 4, 2016 15:26
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.