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:
parent
05d9662d3e
commit
15be7fdab8
@ -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 );
|
||||
|
Loading…
x
Reference in New Issue
Block a user