We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As an admin, I want to get valid JSON result when doing a valid Give API query.
I am getting two JSON object as an API result.
I am expecting one JSON object.
You can use the above code to generate issue but replace key and token with valid API keys
key
token
https://github.com/impress-org/give/blob/b9cb4fc18bb1ff47a607be7200cfc0f52d113dc1/includes/api/class-give-api.php#L1785
give_die is wrapper function for wp_die which ouput JSON error for application/json request. We can use die instead of give_die.
give_die
wp_die
application/json
die
The text was updated successfully, but these errors were encountered:
fix: use die instead of give_die
cbd3b65
to prevent expected result output from wp_die ref #4071
d895134
to prevent unexpected result output from wp_die ref #4071
Merge pull request #4072 from impress-org/issue/4071
458424b
fix: getting unexpected JSON result from API #4071
fix: prevent sliently stall phpunit issue
915ca93
for issue #4071 we added to die which cause to stall phpunit tests to prevent that we start is give_die with additional update
ravinderk
No branches or pull requests
Bug Report
User Story
As an admin, I want to get valid JSON result when doing a valid Give API query.
Current Behavior
I am getting two JSON object as an API result.
Expected Behavior
I am expecting one JSON object.
Bug Type
Steps to Reproduce
You can use the above code to generate issue but replace
key
andtoken
with valid API keysVisuals
Possible Solution
https://github.com/impress-org/give/blob/b9cb4fc18bb1ff47a607be7200cfc0f52d113dc1/includes/api/class-give-api.php#L1785
give_die
is wrapper function forwp_die
which ouput JSON error forapplication/json
request. We can usedie
instead ofgive_die
.Acceptance Criteria
The text was updated successfully, but these errors were encountered: