Ticket #3544: mysql_error_patch.diff
| File mysql_error_patch.diff, 701 bytes (added by jgough, 6 years ago) |
|---|
-
wordpress/wp-includes/wp-db.php
89 89 90 90 function print_error($str = '') { 91 91 global $EZSQL_ERROR; 92 if (!$str) $str = mysql_error( );92 if (!$str) $str = mysql_error($this->dbh); 93 93 $EZSQL_ERROR[] = 94 94 array ('query' => $this->last_query, 'error_str' => $str); 95 95 … … 157 157 $this->queries[] = array( $query, $this->timer_stop() ); 158 158 159 159 // If there is an error then take note of it.. 160 if ( mysql_error( ) ) {160 if ( mysql_error($this->dbh) ) { 161 161 $this->print_error(); 162 162 return false; 163 163 }
