Ticket #25703: 25703.diff
File 25703.diff, 1.5 KB (added by , 11 years ago) |
---|
-
src/wp-includes/functions.php
2793 2793 function dead_db() { 2794 2794 global $wpdb; 2795 2795 2796 wp_load_translations_early(); 2797 2796 2798 // Load custom DB error template, if present. 2797 2799 if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) { 2798 2800 require_once( WP_CONTENT_DIR . '/db-error.php' ); … … 2807 2809 status_header( 500 ); 2808 2810 nocache_headers(); 2809 2811 header( 'Content-Type: text/html; charset=utf-8' ); 2810 2811 wp_load_translations_early();2812 2812 ?> 2813 2813 <!DOCTYPE html> 2814 2814 <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>> -
src/wp-includes/wp-db.php
1154 1154 1155 1155 if ( !$this->dbh ) { 1156 1156 wp_load_translations_early(); 1157 1158 // Load custom DB error template, if present. 1159 if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) { 1160 require_once( WP_CONTENT_DIR . '/db-error.php' ); 1161 die(); 1162 } 1163 1157 1164 $this->bail( sprintf( __( " 1158 1165 <h1>Error establishing a database connection</h1> 1159 1166 <p>This either means that the username and password information in your <code>wp-config.php</code> file is incorrect or we can't contact the database server at <code>%s</code>. This could mean your host's database server is down.</p>