[wp-trac] [WordPress Trac] #52106: REST API json_encode error results in `null` response
WordPress Trac
noreply at wordpress.org
Sat Jan 2 20:35:18 UTC 2021
#52106: REST API json_encode error results in `null` response
--------------------------+--------------------------------
Reporter: atimmer | Owner: TimothyBlynJacobs
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses: rest-api
--------------------------+--------------------------------
Changes (by TimothyBlynJacobs):
* owner: (none) => TimothyBlynJacobs
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"49918" 49918]:
{{{
#!CommitTicketReference repository="" revision="49918"
REST API: Properly display JSON encoding errors.
Previously `null` was returned because the server was accessing the
incorrect variable.
Props atimmer, technosailor.
Fixes #52106.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52106#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list