Changeset 8134

Show
Ignore:
Timestamp:
06/20/08 15:17:09 (3 months ago)
Author:
westi
Message:

Make the SAVEQUERIES define more flexible. Fixes #6764 props filosofo.

Files:

Legend:

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

    r7579 r8134  
    1111define('ARRAY_A', 'ARRAY_A', false); 
    1212define('ARRAY_N', 'ARRAY_N', false); 
    13  
    14 if (!defined('SAVEQUERIES')) 
    15     define('SAVEQUERIES', false); 
    1613 
    1714class wpdb { 
     
    280277 
    281278        // Perform the query via std mysql_query function.. 
    282         if (SAVEQUERIES
     279        if ( defined('SAVEQUERIES') && SAVEQUERIES
    283280            $this->timer_start(); 
    284281 
     
    286283        ++$this->num_queries; 
    287284 
    288         if (SAVEQUERIES
     285        if ( defined('SAVEQUERIES') && SAVEQUERIES
    289286            $this->queries[] = array( $query, $this->timer_stop(), $this->get_caller() ); 
    290287