[wp-trac] [WordPress Trac] #35666: Add support for HTTP response codes to wp_send_json_error(), wp_send_json_success(), and wp_send_json

WordPress Trac noreply at wordpress.org
Wed Aug 31 19:01:02 UTC 2016


#35666: Add support for HTTP response codes to wp_send_json_error(),
wp_send_json_success(), and wp_send_json
-------------------------+--------------------------
 Reporter:  johnbillion  |       Owner:  johnbillion
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.7
Component:  Formatting   |     Version:  3.5
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+--------------------------

Comment (by westonruter):

 In [changeset:"38478"]:
 {{{
 #!CommitTicketReference repository="" revision="38478"
 Customize: Use new `$status_code` parameter for `wp_send_json_error()`
 instead of calling `status_header()` separately.

 Props johnbillion.
 See #35666.
 Fixes #37897.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35666#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list