From 6508eb9d47d744c2ed3cade73601c48aabfb4c3d 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: https://develop.svn.wordpress.org/trunk@5455 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 b558384208..84d5af2af7 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)