Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't send empty 'status' and 'type' parameters to API #42

Merged
merged 6 commits into from
Jan 4, 2017

Conversation

CodyReichert
Copy link
Member

When the API is sent an empty status parameter, like "..&status=&", it returns only Active listings. But with not status parameter it returns Active and Pending listings.

The plugin was setting empty status parameters on short-code pagination links when there was no status specified. For example, this would set an empty status parameter:

[sr_listings type="Land"]

on the pagination links in the output and provide unexpected listings on the next page.

Problem:

When the API is sent an empty status parameter, like "..&status=&", it
returns only Active listings. But with not status parameter it returns
Active and Pending listings.

The plugin was setting empty status parameters on short-code pagintation
links when there was no status specified. For example, this would set an
empty status parameter:

[sr_listings type="Land"]

on the pagination links in the output and provide unexpected listings on
the next page.
@CodyReichert CodyReichert self-assigned this Jan 3, 2017
The API does not support an 'area' parameter, it support 'minarea' and
'maxarea', so this documentation is incorrect.

See #43
@CodyReichert CodyReichert added Params & Filters This affects user-facing options Shortcodes This affects user-facing short-codes bug This fixes or addresses a bug labels Jan 3, 2017
@CodyReichert CodyReichert merged commit 526df78 into master Jan 4, 2017
@CodyReichert CodyReichert deleted the wip-no-empty-params branch January 4, 2017 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This fixes or addresses a bug Params & Filters This affects user-facing options Shortcodes This affects user-facing short-codes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant