Ticket #37508: 37508.patch
File 37508.patch, 749 bytes (added by , 7 years ago) |
---|
-
wp-includes/wp-db.php
3080 3080 if ( $this->col_info ) 3081 3081 return; 3082 3082 3083 if ( $this->use_mysqli ) {3083 if ( $this->use_mysqli && $this->result instanceof mysqli_result ) { 3084 3084 $num_fields = mysqli_num_fields( $this->result ); 3085 3085 for ( $i = 0; $i < $num_fields; $i++ ) { 3086 3086 $this->col_info[ $i ] = mysqli_fetch_field( $this->result ); 3087 3087 } 3088 } else {3088 } elseif ( is_resource( $this->result ) ) { 3089 3089 $num_fields = mysql_num_fields( $this->result ); 3090 3090 for ( $i = 0; $i < $num_fields; $i++ ) { 3091 3091 $this->col_info[ $i ] = mysql_fetch_field( $this->result, $i );