[wp-trac] [WordPress Trac] #21472: Allow supplying a custom text to status_header()

WordPress Trac wp-trac at lists.automattic.com
Sun Aug 5 20:19:54 UTC 2012


#21472: Allow supplying a custom text to status_header()
-------------------------+-----------------------------
 Reporter:  nbachiyski   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:
 Severity:  minor        |   Keywords:  has-patch
-------------------------+-----------------------------
 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()}}}.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21472>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list