Opened 14 years ago
Closed 11 years ago
#21472 closed enhancement (fixed)
Allow supplying a custom text to status_header()
| Reported by: | nbachiyski | Owned by: | johnbillion |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | General | Version: | |
| Severity: | minor | Keywords: | has-patch commit |
| Cc: | Focuses: |
Description
Problem: I'd like to issue a HTTP 500 error, but include a text different from Internal Server Error, so that the client knows what caused the error.
Currently for a known error code the status_header() function always uses the global array $wp_header_to_desc and the only way to have my own text is to set the value in the global array.
The patch adds a second a argument to status_header().
Attachments (3)
Change History (8)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
The patch needs a refresh since [25990], and also docs for the new parameter.