Make WordPress Core

Ticket #13657: 13657.3.diff

File 13657.3.diff, 450 bytes (added by Mte90, 7 years ago)

new patch with in bail method

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

    diff --git src/wp-includes/wp-db.php src/wp-includes/wp-db.php
    index 57ed865a35..6ec426d26c 100644
    class wpdb { 
    30833083         */
    30843084        public function bail( $message, $error_code = '500' ) {
    30853085                if ( !$this->show_errors ) {
     3086                        $message .= mysql_error( $this->dbh );
    30863087                        if ( class_exists( 'WP_Error', false ) ) {
    30873088                                $this->error = new WP_Error($error_code, $message);
    30883089                        } else {