Spearhead: remove excess JS from the frontend (#7849)

This commit is contained in:
Sérgio Gomes 2024-06-12 14:54:36 +01:00 committed by GitHub
parent d82db8e14a
commit 1278c6d895
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -162,7 +162,7 @@ function spearhead_block_extends() {
array( 'wp-blocks', 'wp-edit-post' ) // wp-edit-post is added to avoid a race condition when trying to unregister a style variation
);
}
add_action( 'enqueue_block_assets', 'spearhead_block_extends' );
add_action( 'enqueue_block_editor_assets', 'spearhead_block_extends' );
/**
* Add Google webfonts