WordPress.org

Make WordPress Core

Changeset 8134


Ignore:
Timestamp:
06/20/2008 03:17:09 PM (11 years ago)
Author:
westi
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.