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

Conversation

@rachelbaker
Copy link
Member

Fixes #862.

A post_type collection endpoint will no longer return a 404 status and a json_invalid_query WP_Error for valid queries that return 0 results.

Now, valid queries that return 0 results will return a 200 status and an empty array.

@rachelbaker rachelbaker added this to the 2.0 milestone Feb 16, 2015
@rachelbaker
Copy link
Member Author

@WP-API/amigos #reviewmerge

@danielbachhuber
Copy link
Member

🍎

danielbachhuber added a commit that referenced this pull request Feb 17, 2015
Return 200 and an empty array for valid queries with 0 results.
@danielbachhuber danielbachhuber merged commit c5095d4 into develop Feb 17, 2015
@danielbachhuber danielbachhuber deleted the fix-862 branch February 17, 2015 00:38
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.

Post query returns json_invalid_query for valid query

3 participants