|
@@ 539-541 (lines=3) @@
|
| 536 |
|
WC_Tax::_update_tax_rate( $id, $new_data ); |
| 537 |
|
|
| 538 |
|
// Update locales |
| 539 |
|
if ( ! empty( $data['postcode'] ) && $current_data['postcode'] != $data['postcode'] ) { |
| 540 |
|
WC_Tax::_update_tax_rate_postcodes( $id, wc_clean( $data['postcode'] ) ); |
| 541 |
|
} |
| 542 |
|
|
| 543 |
|
if ( ! empty( $data['city'] ) && $current_data['city'] != $data['city'] ) { |
| 544 |
|
WC_Tax::_update_tax_rate_cities( $id, wc_clean( $data['city'] ) ); |
|
@@ 543-545 (lines=3) @@
|
| 540 |
|
WC_Tax::_update_tax_rate_postcodes( $id, wc_clean( $data['postcode'] ) ); |
| 541 |
|
} |
| 542 |
|
|
| 543 |
|
if ( ! empty( $data['city'] ) && $current_data['city'] != $data['city'] ) { |
| 544 |
|
WC_Tax::_update_tax_rate_cities( $id, wc_clean( $data['city'] ) ); |
| 545 |
|
} |
| 546 |
|
|
| 547 |
|
do_action( 'woocommerce_cli_update_tax_rate', $id, $data ); |
| 548 |
|
|