-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable theme supports automatically for FSE theme (#35593)
- Loading branch information
1 parent
2d79bb9
commit 16633ff
Showing
2 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
/** | ||
* Loads default theme supports for block themes. | ||
* | ||
* @package gutenberg | ||
*/ | ||
|
||
if ( gutenberg_is_fse_theme() ) { | ||
add_theme_support( 'post-thumbnails' ); | ||
add_theme_support( 'responsive-embeds' ); | ||
add_theme_support( 'editor-styles' ); | ||
add_theme_support( | ||
'html5', | ||
array( | ||
'style', | ||
'script', | ||
) | ||
); | ||
add_theme_support( 'automatic-feed-links' ); | ||
add_filter( 'should_load_separate_core_block_assets', '__return_true' ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters