#37897 closed enhancement (fixed)
Use the status parameter when sending JSON errors from the customizer
Reported by: | johnbillion | Owned by: | westonruter |
---|---|---|---|
Milestone: | 4.7 | Priority: | low |
Severity: | minor | Version: | 4.7 |
Component: | Customize | Keywords: | has-patch |
Focuses: | Cc: |
Description
[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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
In 38478: