Skip to content

Commit

Permalink
Merge pull request #9 from Travelopia/WP-70/fix-block-editor-styling
Browse files Browse the repository at this point in the history
WP-70 fix broken block editor styling
  • Loading branch information
junaidbhura authored Apr 30, 2024
2 parents 14c1fb9 + 0d3667b commit 7a79282
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@
* @return void
*/
function bootstrap(): void {
add_action( 'enqueue_block_editor_assets', __NAMESPACE__ . '\\enqueue_block_editor_assets' );
add_action( 'enqueue_block_assets', __NAMESPACE__ . '\\enqueue_block_editor_assets' );
}

/**
* Enqueue Editor Assets.
*/
function enqueue_block_editor_assets(): void {
if ( ! is_admin() ) {
return;
}

// Get block asset details.
$block_assets = [];
$asset_file = __DIR__ . '/../dist/blocks.asset.php';
Expand Down

0 comments on commit 7a79282

Please sign in to comment.