WordPress.org

Make WordPress Core

Changeset 24495


Ignore:
Timestamp:
06/21/2013 06:23:56 PM (6 years ago)
Author:
nacin
Message:

Partially revert [24460] and only flush insert_id on the next insert or replace query, as we had been doing before.

Merges [24494] to the 3.5 branch.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.5/wp-includes/wp-db.php

    r24460 r24495  
    11211121        $this->col_info    = null;
    11221122        $this->last_query  = null;
    1123         $this->rows_affected = $this->num_rows = $this->insert_id = 0;
     1123        $this->rows_affected = $this->num_rows = 0;
    11241124        $this->last_error  = '';
    11251125
     
    13031303        if ( ! in_array( strtoupper( $type ), array( 'REPLACE', 'INSERT' ) ) )
    13041304            return false;
     1305        $this->insert_id = 0;
    13051306        $formats = $format = (array) $format;
    13061307        $fields = array_keys( $data );
Note: See TracChangeset for help on using the changeset viewer.