Skip to content

Commit bf2c299

Browse files
committed
WDSBT-20 - Replace enqueue_block_editor_assets with enqueue_block_assets to get styles and scripts for both frontend and backend
1 parent 6865c4e commit bf2c299

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

inc/hooks/register-block-variations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ function register_block_variations() {
2020
);
2121
}
2222

23-
add_filter( 'enqueue_block_editor_assets', __NAMESPACE__ . '\register_block_variations', 10, 1 );
23+
add_filter( 'enqueue_block_assets', __NAMESPACE__ . '\register_block_variations', 10, 1 );

inc/hooks/unregister-block-variations.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ function remove_core_blocks_gutenberg_editor() {
2121
true
2222
);
2323
}
24-
add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\remove_core_blocks_gutenberg_editor' );
24+
add_action( 'enqueue_block_assets', __NAMESPACE__ . '\remove_core_blocks_gutenberg_editor' );

0 commit comments

Comments
 (0)