Ticket #28155: 28155.diff
File 28155.diff, 693 bytes (added by , 10 years ago) |
---|
-
wp-includes/wp-db.php
1290 1290 $this->rows_affected = $this->num_rows = 0; 1291 1291 $this->last_error = ''; 1292 1292 1293 if ( is_resource( $this->result ) ) { 1294 if ( $this->use_mysqli ) { 1295 mysqli_free_result( $this->result ); 1296 } else { 1297 mysql_free_result( $this->result ); 1298 } 1293 if ( $this->use_mysqli && $this->result instanceof mysqli_result ) { 1294 while( $this->dbh->more_results() ) $this->dbh->next_result(); 1295 } elseif ( is_resource( $this->result ) ) { 1296 mysql_free_result( $this->result ); 1299 1297 } 1300 1298 } 1301 1299