[wp-trac] [WordPress Trac] #21282: Introduce wp_header() pluggable function

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 15 14:49:01 UTC 2012


#21282: Introduce wp_header() pluggable function
-----------------------------------+------------------------------
 Reporter:  sirzooro               |       Owner:
     Type:  enhancement            |      Status:  new
 Priority:  normal                 |   Milestone:  Awaiting Review
Component:  General                |     Version:  3.4.1
 Severity:  normal                 |  Resolution:
 Keywords:  has-patch 2nd-opinion  |
-----------------------------------+------------------------------
Changes (by scribu):

 * keywords:  has-patch => has-patch 2nd-opinion


Comment:

 We already have a wp_redirect() function, which should be used instead of
 `header( "Location: ..." )`.

 I don't see how changing the other headers, such as "Content Type" would
 help with testing.

 Also, I personally don't like pluggable functions.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21282#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list