Introduce wp_header() pluggable function
|Reported by:||sirzooro||Owned by:|
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?