Ticket #28155: 28155.4.diff
File 28155.4.diff, 797 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/wp-db.php
1325 1325 if ( $this->use_mysqli && $this->result instanceof mysqli_result ) { 1326 1326 mysqli_free_result( $this->result ); 1327 1327 $this->result = null; 1328 1328 // Sanity check before using the handle 1329 if ( empty( $this->dbh ) || !( $this->dbh instanceof mysqli ) ) { 1330 return; 1331 } 1329 1332 // Clear out any results from a multi-query 1330 while ( mysqli_more_results( $this->dbh) ) {1331 mysqli_next_result( $this->dbh);1333 while ( $this->dbh->more_results() ) { 1334 $this->dbh->next_result(); 1332 1335 } 1333 1336 } else if ( is_resource( $this->result ) ) { 1334 1337 mysql_free_result( $this->result );