From 76d0f296984bc1344cfd5169a4371d342d5879da Mon Sep 17 00:00:00 2001 From: markjaquith Date: Thu, 13 Sep 2007 05:00:46 +0000 Subject: [PATCH] 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 --- wp-includes/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 3eee559ee..36e48f0ea 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -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 );