diff --git a/wp-includes/version.php b/wp-includes/version.php index faf451e682..259bd5fe2e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32514'; +$wp_version = '4.3-alpha-32515'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index e749f517c4..23bb034578 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -2893,11 +2893,13 @@ class wpdb { return; if ( $this->use_mysqli ) { - for ( $i = 0; $i < @mysqli_num_fields( $this->result ); $i++ ) { + $num_fields = @mysqli_num_fields( $this->result ); + for ( $i = 0; $i < $num_fields; $i++ ) { $this->col_info[ $i ] = @mysqli_fetch_field( $this->result ); } } else { - for ( $i = 0; $i < @mysql_num_fields( $this->result ); $i++ ) { + $num_fields = @mysql_num_fields( $this->result ); + for ( $i = 0; $i < $num_fields; $i++ ) { $this->col_info[ $i ] = @mysql_fetch_field( $this->result, $i ); } }