From f5f5709cba60c5710296115efb1dad4bf1f51406 Mon Sep 17 00:00:00 2001 From: ryan 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: http://svn.automattic.com/wordpress/trunk@4018 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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/>

+

+ + +