From 15be7fdab8df53411e13fd4aa7df6d4941c526de Mon Sep 17 00:00:00 2001 From: Mark Jaquith 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: https://develop.svn.wordpress.org/trunk@6107 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 3eee559ee1..36e48f0eaa 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 );