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:
parent
103e793478
commit
76d0f29698
|
@ -803,7 +803,8 @@ function status_header( $header ) {
|
||||||
if ( ('HTTP/1.1' != $protocol) && ('HTTP/1.0' != $protocol) )
|
if ( ('HTTP/1.1' != $protocol) && ('HTTP/1.0' != $protocol) )
|
||||||
$protocol = 'HTTP/1.0';
|
$protocol = 'HTTP/1.0';
|
||||||
$status_header = "$protocol $header $text";
|
$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', '>=' ) ) {
|
if ( version_compare( phpversion(), '4.3.0', '>=' ) ) {
|
||||||
return @header( $status_header, true, $header );
|
return @header( $status_header, true, $header );
|
||||||
|
|
Loading…
Reference in New Issue