Make WordPress Core

Changeset 24027


Ignore:
Timestamp:
04/18/2013 09:51:02 AM (12 years ago)
Author:
SergeyBiryukov
Message:

Only show database errors if WP_DEBUG_DISPLAY is enabled. props cheeserolls, storkontheroof, crazycoders. fixes #22203.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/wp-db.php

    r22429 r24027  
    537537        register_shutdown_function( array( $this, '__destruct' ) );
    538538
    539         if ( WP_DEBUG )
     539        if ( WP_DEBUG && WP_DEBUG_DISPLAY )
    540540            $this->show_errors();
    541541
Note: See TracChangeset for help on using the changeset viewer.