From cba9eda1f4cdc85d2bce50b35abe5b73cc2cf584 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 11 Mar 2019 11:30:18 +0000 Subject: [PATCH] Database: Use `wp_die()` instead of `die()` in `dead_db()`, for more flexibility and consistency with other error messages in core. Props gitlost. Fixes #41655. git-svn-id: https://develop.svn.wordpress.org/trunk@44827 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/functions.php | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/src/wp-includes/functions.php b/src/wp-includes/functions.php index 2cce881518..383c0fedef 100644 --- a/src/wp-includes/functions.php +++ b/src/wp-includes/functions.php @@ -4248,28 +4248,7 @@ function dead_db() { } // Otherwise, be terse. - status_header( 500 ); - nocache_headers(); - header( 'Content-Type: text/html; charset=utf-8' ); - - $dir_attr = ''; - if ( is_rtl() ) { - $dir_attr = ' dir="rtl"'; - } - ?> - -> - - - <?php _e( 'Database Error' ); ?> - - - -

- - - ' . __( 'Error establishing a database connection' ) . '', __( 'Database Error' ) ); } /**