[wp-trac] [WordPress Trac] #28978: wp_send_json_error() should support WP_Error objects
WordPress Trac
noreply at wordpress.org
Fri Nov 21 16:55:30 UTC 2014
#28978: wp_send_json_error() should support WP_Error objects
---------------------------------------------+----------------------------
Reporter: danielbachhuber | Owner: paulschreiber
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.1
Component: General | Version:
Severity: normal | Resolution: fixed
Keywords: good-first-bug has-patch commit | Focuses:
---------------------------------------------+----------------------------
Changes (by johnbillion):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"30506"]:
{{{
#!CommitTicketReference repository="" revision="30506"
Add support for `WP_Error` objects passed to `wp_send_json_error()`. The
error object gets output as an array of error codes and messages, rather
than as an empty object.
Fixes #28978
Props paulschreiber
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28978#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list