This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
Improve how assets are enqueued #9354
Labels
priority: high
The issue/PR is high priority—it affects lots of customers substantially, but not critically.
type: cooldown
Things that are queued for a cooldown period (assists with planning).
type: refactor
The issue/PR is related to refactoring.
To fix #9331, we did a dirty patch to change how assets are enqueued on the Site Editor (#9332).
We have to revisit the entire process to be sure that the assets are enqueued in the right way and only when they are necessary.
To understand why this if/else statement exists you can reproduce the issues quickly by doing the following:
add_action( 'enqueue_block_editor_assets', array( $this, 'register_data_script' ) );
Payment gateway with handle 'wc-payment-method-cod' has been deactivated in Cart and Checkout blocks because its dependency 'wc-settings' is not registered. Read the docs about registering assets for payment methods:
. This error fails the E2E testsadd_action( 'init', array( $this, 'register_data_script' ) );
The text was updated successfully, but these errors were encountered: