Fix infinite loop with importing tax rates (#20253).

This commit is contained in:
Chris Montgomery 2018-05-26 22:42:37 +00:00
parent 127e5f0213
commit 5c37551128
1 changed files with 2 additions and 0 deletions

View File

@ -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' ) );