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
This commit is contained in:
rob1n 2007-05-12 16:24:17 +00:00
parent 031cf54afe
commit 6508eb9d47
1 changed files with 4 additions and 1 deletions

View File

@ -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)