[wp-trac] [WordPress Trac] #38547: REST-API Json decode error will not give back an error
WordPress Trac
noreply at wordpress.org
Thu Nov 3 04:04:44 UTC 2016
#38547: REST-API Json decode error will not give back an error
---------------------------+---------------------
Reporter: danielhuesken | Owner: rmccue
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 4.7
Component: REST API | Version: 4.6.1
Severity: normal | Resolution: fixed
Keywords: | Focuses:
---------------------------+---------------------
Changes (by joehoyle):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"39109"]:
{{{
#!CommitTicketReference repository="" revision="39109"
REST API: Return error when JSON decoding fails.
If you send a request to the REST API with invalid JSON in body than it
will now return a error. This assists developers if they accidentally send
invalid JSON and wonder why their data appears to be ignored.
Props rmccue.
Fixes #38547.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38547#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list