Fix infinite loop with importing tax rates (#20253).
This commit is contained in:
parent
127e5f0213
commit
5c37551128
|
@ -162,6 +162,8 @@ class WC_Tax_Rate_Importer extends WP_Importer {
|
|||
$tax_rate_id = WC_Tax::_insert_tax_rate( $tax_rate );
|
||||
WC_Tax::_update_tax_rate_postcodes( $tax_rate_id, wc_clean( $postcode ) );
|
||||
WC_Tax::_update_tax_rate_cities( $tax_rate_id, wc_clean( $city ) );
|
||||
|
||||
$row = fgetcsv( $handle, 0, $this->delimiter );
|
||||
}
|
||||
} else {
|
||||
$this->import_error( __( 'The CSV is invalid.', 'woocommerce' ) );
|
||||
|
|
Loading…
Reference in New Issue