Skip to content

Commit c6f26ce

Browse files
committed
Merge release/10.1.1 into trunk
2 parents 024cfeb + 79ff14e commit c6f26ce

File tree

6 files changed

+21
-5
lines changed

6 files changed

+21
-5
lines changed

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
*** WooPayments Changelog ***
22

3+
= 10.1.1 - 2025-10-27 =
4+
* Fix - Overrides the core `AbstractAutomatticAddressProvider`'s `load_scripts` method to only run if the core setting (`woocommerce_address_autocomplete_enabled` is enabled).
5+
36
= 10.1.0 - 2025-10-15 =
47
* Add - Disputes - Add a loading state to the “Challenge dispute” flow
58
* Add - Pre-fill product type in dispute evidence form based on order products.

includes/class-wc-payments-address-provider.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,15 @@ public function __construct( WC_Payments_API_Client $payments_api_client, WC_Pay
6565
parent::__construct();
6666
}
6767

68+
/**
69+
* Checks if the core setting is enabled before loading scripts.
70+
* The parent method does not check this (will be patched and this override can be removed when WC 10.4 is released)
71+
*/
72+
public function load_scripts() {
73+
if ( wc_string_to_bool( get_option( 'woocommerce_address_autocomplete_enabled', 'no' ) ) === true ) {
74+
parent::load_scripts();
75+
}
76+
}
6877

6978
/**
7079
* Get address service JWT token from the WCPay server.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "woocommerce-payments",
3-
"version": "10.1.0",
3+
"version": "10.1.1",
44
"main": "webpack.config.js",
55
"author": "Automattic",
66
"license": "GPL-3.0-or-later",

readme.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Tags: woocommerce payments, apple pay, credit card, google pay, payment, payment
44
Requires at least: 6.0
55
Tested up to: 6.8
66
Requires PHP: 7.3
7-
Stable tag: 10.1.0
7+
Stable tag: 10.1.1
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010

@@ -87,6 +87,10 @@ You can read our Terms of Service and other policies [here](https://woocommerce.
8787

8888
== Changelog ==
8989

90+
= 10.1.1 - 2025-10-27 =
91+
* Fix - Overrides the core `AbstractAutomatticAddressProvider`'s `load_scripts` method to only run if the core setting (`woocommerce_address_autocomplete_enabled` is enabled).
92+
93+
9094
= 10.1.0 - 2025-10-15 =
9195
* Add - Disputes - Add a loading state to the “Challenge dispute” flow
9296
* Add - Pre-fill product type in dispute evidence form based on order products.

woocommerce-payments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* WC tested up to: 10.2.0
1212
* Requires at least: 6.0
1313
* Requires PHP: 7.3
14-
* Version: 10.1.0
14+
* Version: 10.1.1
1515
* Requires Plugins: woocommerce
1616
*
1717
* @package WooCommerce\Payments

0 commit comments

Comments
 (0)