From 51ace8608960e4acb2fe2bbfc193ce0cf89b299e Mon Sep 17 00:00:00 2001 From: rob1n Date: Sat, 12 May 2007 16:24:17 +0000 Subject: [PATCH] Don't call the function if it doesn't exist yet. fixes #4249 git-svn-id: http://svn.automattic.com/wordpress/trunk@5455 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index b55838420..84d5af2af 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -370,7 +370,10 @@ class wpdb { if ( !$this->show_errors ) return false; - status_header( 503 ); + if ( function_exists( 'status_header' ) ) { + status_header( 503 ); + } + header('Content-Type: text/html; charset=utf-8'); if (strpos($_SERVER['PHP_SELF'], 'wp-admin') !== false)