CYS: avoid to enqueue Jetpack scripts (#50679)
* CYS: avoid to enqueue jetpack scripts * Add changefile(s) from automation for the following project(s): woocommerce * remove not necessary import --------- Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
parent
1d9592db87
commit
67bc34e607
|
@ -0,0 +1,4 @@
|
|||
Significance: patch
|
||||
Type: fix
|
||||
|
||||
CYS: avoid to enqueue Jetpack scripts
|
|
@ -3,7 +3,6 @@
|
|||
namespace Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks;
|
||||
|
||||
use Automattic\WooCommerce\Admin\Features\OnboardingTasks\Task;
|
||||
use Jetpack_Gutenberg;
|
||||
use WP_Post;
|
||||
|
||||
/**
|
||||
|
@ -238,11 +237,6 @@ class CustomizeStore extends Task {
|
|||
* @since 8.0.3
|
||||
*/
|
||||
do_action( 'enqueue_block_editor_assets' );
|
||||
|
||||
// Load Jetpack's block editor assets because they are not enqueued by default.
|
||||
if ( class_exists( 'Jetpack_Gutenberg' ) ) {
|
||||
Jetpack_Gutenberg::enqueue_block_editor_assets();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue