Ticket #23085: 23085.3.patch
File 23085.3.patch, 517 bytes (added by , 8 years ago) |
---|
-
wp-includes/wp-db.php
1670 1670 $this->last_error = mysql_error( $this->dbh ); 1671 1671 } 1672 1672 1673 if ( $this->last_error ) {1673 if ( is_resource( $this->dbh ) && $this->last_error ) { 1674 1674 // Clear insert_id on a subsequent failed insert. 1675 1675 if ( $this->insert_id && preg_match( '/^\s*(insert|replace)\s/i', $query ) ) 1676 1676 $this->insert_id = 0;