[wp-trac] [WordPress Trac] #37897: Use the status parameter when sending JSON errors from the customizer
WordPress Trac
noreply at wordpress.org
Wed Aug 31 18:41:52 UTC 2016
#37897: Use the status parameter when sending JSON errors from the customizer
-------------------------+-------------------
Reporter: johnbillion | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: 4.7
Component: Customize | Version: trunk
Severity: minor | Keywords:
Focuses: |
-------------------------+-------------------
[38422] introduced a `$status_code` parameter to the
`wp_send_json_error()` function, among others.
The only place in core that currently sets a status code when calling
`wp_send_json_error()` is in the customizer. Let's replace the manual
calls to `status_header()` with this parameter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37897>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list