Tax rate importer parse error

This commit is contained in:
Mike Jolley 2014-11-20 17:09:07 +00:00
parent 1ec8dabf8a
commit add83a75dc
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ if ( class_exists( 'WP_Importer' ) ) {
);
$tax_rate_id = $wpdb->insert_id;
$postcodes = array_map( 'strtoupper', array_map( 'wc_clean', array_filter( explode( ';', $postcode ) ) );
$postcodes = array_map( 'strtoupper', array_map( 'wc_clean', array_filter( explode( ';', $postcode ) ) ) );
$postcodes = array_diff( WC_Tax::_get_expanded_numeric_ranges_from_array( array_filter( explode( ';', $postcodes ) ) ), array( '*' ) );
$postcode_query = array();
@ -161,7 +161,7 @@ if ( class_exists( 'WP_Importer' ) ) {
$wpdb->query( "INSERT INTO {$wpdb->prefix}woocommerce_tax_rate_locations ( location_code, tax_rate_id, location_type ) VALUES " . implode( ',', $postcode_query ) );
}
$cities = array_map( 'strtoupper', array_map( 'wc_clean', array_filter( explode( ';', $city ) ) );
$cities = array_map( 'strtoupper', array_map( 'wc_clean', array_filter( explode( ';', $city ) ) ) );
$city_query = array();
foreach ( $cities as $city ) {