From 3a8383fd2da7f0ae766741aa7a7322bebaa3a574 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Sun, 16 Jul 2006 15:41:36 +0000 Subject: [PATCH] bail() cannot use wp_die(). wp_die() isn't loaded when bail() runs. fixes #2941 git-svn-id: https://develop.svn.wordpress.org/trunk@4018 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/wp-db.php | 53 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index d3db929ad1..5641c0638c 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -306,7 +306,58 @@ class wpdb { if ( !$this->show_errors ) return false; - wp_die($message); + header( 'Content-Type: text/html; charset=utf-8'); +?> + + + + <?php WordPress › Error ?> + + + + +

WordPress/>

+

+ + +