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

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 15 12:47:23 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       |   Keywords:  has-patch
-------------------------+-----------------------------
 I will be nice to have pluggable function wrapper for PHP `header()`
 function - this will allow to unit test HTTP headers sent by WordPress.
 Attached patch adds it, and replaces all existing calls to `header()` with
 it.

 Question: some of exiting calls had errors silenced using `@`, some not.
 In my code I added `@`. Should I keep it, remove it or maybe add extra
 param to function to conditionally silence errors?

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


More information about the wp-trac mailing list