Merge pull request #6204 from om4james/issue-6202

Fix query error when saving tax rates
This commit is contained in:
Mike Jolley 2014-09-10 10:12:12 +01:00
commit 564713fd2d
1 changed files with 3 additions and 1 deletions

View File

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