Ticket #9642: 9642-wpdb-debug-tools.php.diff
| File 9642-wpdb-debug-tools.php.diff, 583 bytes (added by , 17 years ago) |
|---|
-
wp-includes/wp-db.php
714 714 715 715 // Return number of rows selected 716 716 $return_val = $this->num_rows; 717 718 // log explain 719 if ( defined('QUERIES_DEBUG') && defined('SAVEQUERIES') && QUERIES_DEBUG && SAVEQUERIES && 'SELECT FOUND_ROWS()' != $query ) { 720 $explain = @mysql_query("EXPLAIN $query", $this->dbh); 721 $this->queries[] = @mysql_fetch_object($explain); 722 } 717 723 } 718 724 719 725 return $return_val;
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)