Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 38afb71

Browse files
committed
Ensure payment method assets are initialized before main block assets are. (#2579)
1 parent eb6a32b commit 38afb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Payments/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct( PaymentMethodRegistry $payment_method_registry, Ass
5252
* Initialize class features.
5353
*/
5454
protected function init() {
55-
add_action( 'init', array( $this->payment_method_registry, 'initialize' ) );
55+
add_action( 'init', array( $this->payment_method_registry, 'initialize' ), 5 );
5656
add_filter( 'woocommerce_blocks_register_script_dependencies', array( $this, 'add_payment_method_script_dependencies' ), 10, 2 );
5757
add_action( 'woocommerce_blocks_checkout_enqueue_data', array( $this, 'add_payment_method_script_data' ) );
5858
add_action( 'woocommerce_blocks_cart_enqueue_data', array( $this, 'add_payment_method_script_data' ) );

0 commit comments

Comments
 (0)