Skip to content

Commit

Permalink
WDSBT-20 - Replace enqueue_block_editor_assets with enqueue_block_ass…
Browse files Browse the repository at this point in the history
…ets to get styles and scripts for both frontend and backend
  • Loading branch information
khleomix committed Jun 19, 2024
1 parent 6865c4e commit bf2c299
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion inc/hooks/register-block-variations.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ function register_block_variations() {
);
}

add_filter( 'enqueue_block_editor_assets', __NAMESPACE__ . '\register_block_variations', 10, 1 );
add_filter( 'enqueue_block_assets', __NAMESPACE__ . '\register_block_variations', 10, 1 );
2 changes: 1 addition & 1 deletion inc/hooks/unregister-block-variations.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ function remove_core_blocks_gutenberg_editor() {
true
);
}
add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\remove_core_blocks_gutenberg_editor' );
add_action( 'enqueue_block_assets', __NAMESPACE__ . '\remove_core_blocks_gutenberg_editor' );

0 comments on commit bf2c299

Please sign in to comment.