Merge pull request #6204 from om4james/issue-6202
Fix query error when saving tax rates
This commit is contained in:
commit
564713fd2d
|
@ -723,7 +723,9 @@ class WC_Settings_Tax extends WC_Settings_Page {
|
|||
}
|
||||
}
|
||||
|
||||
if ( !empty( $postcode_query ) ) {
|
||||
$wpdb->query( "INSERT INTO {$wpdb->prefix}woocommerce_tax_rate_locations ( location_code, tax_rate_id, location_type ) VALUES " . implode( ',', $postcode_query ) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue