Check for apply_filters() in status_header() so that it can be called early on in load process

git-svn-id: http://svn.automattic.com/wordpress/trunk@6107 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-09-13 05:00:46 +00:00
parent 103e793478
commit 76d0f29698
1 changed files with 2 additions and 1 deletions

View File

@ -803,7 +803,8 @@ function status_header( $header ) {
if ( ('HTTP/1.1' != $protocol) && ('HTTP/1.0' != $protocol) )
$protocol = 'HTTP/1.0';
$status_header = "$protocol $header $text";
$status_header = apply_filters('status_header', $status_header, $header, $text, $protocol);
if ( function_exists('apply_filters') )
$status_header = apply_filters('status_header', $status_header, $header, $text, $protocol);
if ( version_compare( phpversion(), '4.3.0', '>=' ) ) {
return @header( $status_header, true, $header );