#37897 closed enhancement (fixed)
Use the status parameter when sending JSON errors from the customizer
| Reported by: | johnbillion | Owned by: | westonruter |
|---|---|---|---|
| Priority: | low | Milestone: | 4.7 |
| Component: | Customize | Version: | 4.7 |
| Severity: | minor | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 38478: