Make WordPress Core

Ticket #30002: 30002.2.1.patch

File 30002.2.1.patch, 737 bytes (added by Craig Ralston, 11 years ago)
  • wp-includes/ms-load.php

     
    400400        $title = __( 'Error establishing a database connection' );
    401401        $msg  = '<h1>' . $title . '</h1>';
    402402        if ( ! is_admin() ) {
    403                 die( $msg );
     403                dead_db();
    404404        }
    405405        $msg .= '<p>' . __( 'If your site does not display, please contact the owner of this network.' ) . '';
    406406        $msg .= ' ' . __( 'If you are the owner of this network please check that MySQL is running properly and all tables are error free.' ) . '</p>';
     
    420420        }
    421421        $msg .= '</ul>';
    422422
    423         wp_die( $msg, $title );
     423        $wpdb->error = $msg;
     424        dead_db();
    424425}
    425426
    426427/**