WordPress.org

Make WordPress Core

Ticket #22203: 22203.patch

File 22203.patch, 462 bytes (added by crazycoders, 5 years ago)

Suggested fix

  • wp-includes/wp-db.php

     
    536536        function __construct( $dbuser, $dbpassword, $dbname, $dbhost ) {
    537537                register_shutdown_function( array( $this, '__destruct' ) );
    538538
    539                 if ( WP_DEBUG )
     539                if ( WP_DEBUG & WP_DEBUG_DISPLAY )
     540                {
    540541                        $this->show_errors();
     542                }
    541543
    542544                $this->init_charset();
    543545