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 );