Skip to content

Commit

Permalink
fix: ECE script dependencies with WC 9.7 (#10461)
Browse files Browse the repository at this point in the history
  • Loading branch information
frosso authored Feb 27, 2025
1 parent 24efde2 commit 2f84fc8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-wc9.7-ece-script-dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

fix: GooglePay/ApplePay script dependencies with WooCommerce 9.7
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ public function scripts() {
}

wp_localize_script( 'WCPAY_EXPRESS_CHECKOUT_ECE', 'wcpayExpressCheckoutParams', $express_checkout_params );
wp_localize_script( 'WCPAY_BLOCKS_CHECKOUT', 'wcpayExpressCheckoutParams', $express_checkout_params );

wp_set_script_translations( 'WCPAY_EXPRESS_CHECKOUT_ECE', 'woocommerce-payments' );

Expand Down

0 comments on commit 2f84fc8

Please sign in to comment.