WordPress.org

Make WordPress Core

Changeset 12922


Ignore:
Timestamp:
02/01/2010 10:22:21 PM (12 years ago)
Author:
wpmuguru
Message:

add WP_DEBUG define check in DB code, props dxjones, see #12041

File:
1 edited

Legend:

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

    r12763 r12922  
    368368        register_shutdown_function(array(&$this, "__destruct"));
    369369
    370         if ( WP_DEBUG )
     370        if ( defined( 'WP_DEBUG' ) && WP_DEBUG )
    371371            $this->show_errors();
    372372
Note: See TracChangeset for help on using the changeset viewer.