[wp-trac] [WordPress Trac] #34551: Change API error response to focus on singular errors
WordPress Trac
noreply at wordpress.org
Tue Nov 17 04:11:23 UTC 2015
#34551: Change API error response to focus on singular errors
------------------------------------+---------------------
Reporter: rmccue | Owner: rmccue
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: REST API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: dev-feedback has-patch | Focuses:
------------------------------------+---------------------
Changes (by rmccue):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"35653"]:
{{{
#!CommitTicketReference repository="" revision="35653"
REST API: Optimise for singular error instances.
Previously, the API returned a list of errors, as WP_Error can hold
multiple
error codes internally. This isn't a particularly common use case, and it
makes handling errors on the client side more complex than it needs to be.
Fixes #34551.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34551#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list