Ticket #20838: wpdb.patch
File wpdb.patch, 697 bytes (added by , 13 years ago) |
---|
-
wp-includes/wp-db.php
1115 1115 // Return number of rows affected 1116 1116 $return_val = $this->rows_affected; 1117 1117 } else { 1118 $i = 0; 1119 while ( $i < @mysql_num_fields( $this->result ) ) { 1120 $this->col_info[$i] = @mysql_fetch_field( $this->result ); 1121 $i++; 1118 if (WP_DEBUG) { 1119 $i = 0; 1120 while ( $i < @mysql_num_fields( $this->result ) ) { 1121 $this->col_info[$i] = @mysql_fetch_field( $this->result ); 1122 $i++; 1123 } 1122 1124 } 1123 1125 $num_rows = 0; 1124 1126 while ( $row = @mysql_fetch_object( $this->result ) ) {