Skip to content

Commit df2a508

Browse files
authored
Merge pull request #294 from 10up/feature/enable-separate-block-asset-loading-in-classic-themes
Feature: opt into loading separate block assets for new projects using classic themes
2 parents 580801f + cfd3d48 commit df2a508

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

themes/10up-theme/src/Blocks.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public function register() {
4444
add_action( 'init', [ $this, 'enqueue_block_specific_styles' ] );
4545
add_action( 'init', [ $this, 'register_theme_blocks' ] );
4646
add_action( 'init', [ $this, 'register_block_pattern_categories' ] );
47+
add_filter( 'should_load_separate_core_block_assets', '__return_true' );
4748
}
4849

4950
/**

0 commit comments

Comments
 (0)