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)