Skip to content

Commit

Permalink
Increase admin enqueue scripts priority (#7197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismaeldcom authored Sep 14, 2023
1 parent 88d45eb commit 37bbac3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions changelog/fix-7067-admin-enqueue-scripts-priority
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Increase admin enqueue scripts priority to avoid compatibility issues with WooCommerce Beta Tester plugin.
4 changes: 2 additions & 2 deletions includes/admin/class-wc-payments-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ public function __construct(
add_action( 'admin_menu', [ $this, 'add_payments_menu' ], 0 );
add_action( 'admin_init', [ $this, 'maybe_redirect_to_onboarding' ], 11 ); // Run this after the WC setup wizard and onboarding redirection logic.
add_action( 'admin_enqueue_scripts', [ $this, 'maybe_redirect_overview_to_connect' ], 1 ); // Run this late (after `admin_init`) but before any scripts are actually enqueued.
add_action( 'admin_enqueue_scripts', [ $this, 'register_payments_scripts' ] );
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_payments_scripts' ], 12 );
add_action( 'admin_enqueue_scripts', [ $this, 'register_payments_scripts' ], 9 );
add_action( 'admin_enqueue_scripts', [ $this, 'enqueue_payments_scripts' ], 9 );
add_action( 'woocommerce_admin_field_payment_gateways', [ $this, 'payment_gateways_container' ] );
add_action( 'woocommerce_admin_order_totals_after_total', [ $this, 'show_woopay_payment_method_name_admin' ] );
add_action( 'woocommerce_admin_order_totals_after_total', [ $this, 'display_wcpay_transaction_fee' ] );
Expand Down

0 comments on commit 37bbac3

Please sign in to comment.