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

git-svn-id: https://develop.svn.wordpress.org/trunk@6107 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith 2007-09-13 05:00:46 +00:00
parent 05d9662d3e
commit 15be7fdab8
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 );