Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Remove unnecessary theme supports from functions.php #111

Closed
kjellr opened this issue Oct 14, 2021 · 1 comment · Fixed by #113
Closed

Remove unnecessary theme supports from functions.php #111

kjellr opened this issue Oct 14, 2021 · 1 comment · Fixed by #113

Comments

@kjellr
Copy link
Collaborator

kjellr commented Oct 14, 2021

WordPress/gutenberg#35593 declares the following by default for all block themes:

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' );

These no longer need to be included in Twenty Twenty-Two's file.

@jffng jffng assigned jffng and unassigned jffng Oct 14, 2021
@juricav
Copy link
Contributor

juricav commented Oct 14, 2021

@kjellr hi, I've made the changes in the file

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants