Ticket #4207: wp-db.php.patch

File wp-db.php.patch, 555 bytes (added by darkfate, 5 years ago)

patch to look for db-down.php in wp-includes, go to default if not found

  • wp-db.php

     
    401401        function bail($message) { // Just wraps errors in a nice header and footer 
    402402                if ( !$this->show_errors ) 
    403403                        return false; 
    404                 wp_die($message); 
     404                if ( file_exists('wp-includes/db-down.php') ){ 
     405                        include('db-down.php'); 
     406                        die(); 
     407                } else { 
     408                        wp_die($message); 
     409                } 
    405410        } 
    406411        /** 
    407412         * Checks wether of not the database version is high enough to support the features WordPress uses