Ticket #27982: 27982.diff
File 27982.diff, 527 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/wp-db.php
1548 1548 $this->last_error = mysql_error( $this->dbh ); 1549 1549 } 1550 1550 1551 if ( $this->last_error ) {1551 if ( $this->last_error || ! is_object( $this->result ) ) { 1552 1552 // Clear insert_id on a subsequent failed insert. 1553 1553 if ( $this->insert_id && preg_match( '/^\s*(insert|replace)\s/i', $query ) ) 1554 1554 $this->insert_id = 0;