From 9f10b3332409ca9f47c13b1a45feae1dc3759577 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 21 Jun 2013 01:32:54 +0000 Subject: [PATCH] Have wpdb::flush() reset more variables. git-svn-id: http://core.svn.wordpress.org/trunk@24459 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/wp-db.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 739ec23787..2c7472e8bb 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -1117,6 +1117,8 @@ class wpdb { $this->last_result = array(); $this->col_info = null; $this->last_query = null; + $this->rows_affected = $this->num_rows = $this->insert_id = 0; + $this->last_error = ''; if ( is_resource( $this->result ) ) mysql_free_result( $this->result );