Ticket #4207: wp-db.php.2.patch

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

updated to go to wp-content

  • 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-content/db-down.php') ){ 
     405                        include('wp-content/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