Skip to content

Commit 908f786

Browse files
authored
Merge branch 'trunk' into wooship-1404-zip-code-does-not-match-the-selected-state
2 parents 2c629f2 + d7bc132 commit 908f786

4 files changed

Lines changed: 282 additions & 51 deletions

File tree

changelog.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
*** WooCommerce Tax Changelog ***
22

3-
= 3.0.6 - 2025-xx-xx =
3+
= 3.1.0 - 2025-xx-xx =
4+
* Add - Support for Itemized tax rates.
45
* Fix - TaxJar error notices displaying incorrectly on block cart and checkout.
56

6-
= 3.0.5 - 2025-07-07 =
7+
= 3.0.5 - 2025-07-14 =
78
* Tweak - WooCommerce 10.0 Compatibility.
89

910
= 3.0.4 - 2025-06-30 =

classes/class-wc-connect-functions.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ public static function backup_existing_tax_rates() {
162162
)
163163
);
164164

165+
if ( empty( $rates ) ) {
166+
return false;
167+
}
168+
165169
ob_start();
166170
$header =
167171
__( 'Country Code', 'woocommerce' ) . ',' .
@@ -258,7 +262,7 @@ public static function backup_existing_tax_rates() {
258262

259263
$csv = ob_get_clean();
260264
$upload_dir = wp_upload_dir();
261-
$backed_up = file_put_contents( $upload_dir['basedir'] . '/taxjar-wc_tax_rates-' . date( 'm-d-Y' ) . '-' . time() . '.csv', $csv );
265+
$backed_up = file_put_contents( $upload_dir['basedir'] . '/taxjar-wc_tax_rates-' . date( 'Y-m-d' ) . '-' . time() . '.csv', $csv );
262266

263267
return (bool) $backed_up;
264268
}
@@ -278,7 +282,7 @@ public static function get_backed_up_tax_rate_files() {
278282
return false;
279283
}
280284

281-
$files = [];
285+
$files = array();
282286
foreach ( $found_files as $file ) {
283287
$filename = basename( $file );
284288
$files[ $filename ] = $upload_dir['baseurl'] . '/' . $filename;

0 commit comments

Comments
 (0)