From 3c5073e119ecf805cd1189f30b2a2ab9b2bc6933 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: https://develop.svn.wordpress.org/trunk@24459 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 );