Duplicate comment number queries.
git-svn-id: http://svn.automattic.com/wordpress/trunk@681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
define('OBJECT', 'OBJECT', true);
|
||||
define('ARRAY_A', 'ARRAY_A', true);
|
||||
define('ARRAY_N', 'ARRAY_N', true);
|
||||
define('SAVEQUERIES', true);
|
||||
|
||||
// The Main Class, renamed to avoid conflicts.
|
||||
|
||||
@@ -155,6 +156,9 @@
|
||||
// Perform the query via std mysql_query function..
|
||||
$this->result = mysql_query($query, $this->dbh);
|
||||
++$this->querycount;
|
||||
if (SAVEQUERIES) {
|
||||
$this->savedqueries[] = $query;
|
||||
}
|
||||
|
||||
// If there was an insert, delete or update see how many rows were affected
|
||||
// (Also, If there there was an insert take note of the insert_id
|
||||
|
||||
Reference in New Issue
Block a user