WordPress.org

Make WordPress Core

Ticket #13657: 13657.2.diff

File 13657.2.diff, 695 bytes (added by Mte90, 3 years ago)

check for WB_DEBUG and WP_DEBUG_DISPLAY

  • src/wp-includes/wp-db.php

     
    15891589                                '<code>' . htmlspecialchars( $this->dbhost, ENT_QUOTES ) . '</code>'
    15901590                        ) . "</p>\n";
    15911591
     1592                        if( defined('WP_DEBUG') && defined('WP_DEBUG_DISPLAY') && WP_DEBUG && WP_DEBUG_DISPLAY ) {
     1593                                $message .= '<p>' . mysql_error() . "</p>\n";
     1594                        }
     1595
    15921596                        $message .= "<ul>\n";
    15931597                        $message .= '<li>' . __( 'Are you sure you have the correct username and password?' ) . "</li>\n";
    15941598                        $message .= '<li>' . __( 'Are you sure that you have typed the correct hostname?' ) . "</li>\n";