Opened 13 years ago
Closed 9 years ago
#21472 closed enhancement (fixed)
Allow supplying a custom text to status_header()
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | minor | Version: | |
Component: | General | Keywords: | has-patch commit |
Focuses: | Cc: |
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.
The patch needs a refresh since [25990], and also docs for the new parameter.