Changeset 52383 for trunk/src/wp-includes/theme.php
- Timestamp:
- 12/16/2021 02:45:32 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/theme.php
r52369 r52383 4169 4169 * Adds default theme supports for block themes when the 'setup_theme' action fires. 4170 4170 * 4171 * See {@see 'setup_theme'}. 4172 * 4171 4173 * @since 5.9.0 4172 4174 * @access private 4173 4175 */ 4174 4176 function _add_default_theme_supports() { 4175 if ( wp_is_block_theme() ) { 4176 add_theme_support( 'post-thumbnails' ); 4177 add_theme_support( 'responsive-embeds' ); 4178 add_theme_support( 'editor-styles' ); 4179 add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'style', 'script' ) ); 4180 add_theme_support( 'automatic-feed-links' ); 4181 add_filter( 'should_load_separate_core_block_assets', '__return_true' ); 4182 } 4183 } 4177 if ( ! wp_is_block_theme() ) { 4178 return; 4179 } 4180 4181 add_theme_support( 'post-thumbnails' ); 4182 add_theme_support( 'responsive-embeds' ); 4183 add_theme_support( 'editor-styles' ); 4184 add_theme_support( 'html5', array( 'comment-form', 'comment-list', 'style', 'script' ) ); 4185 add_theme_support( 'automatic-feed-links' ); 4186 4187 add_filter( 'should_load_separate_core_block_assets', '__return_true' ); 4188 }
Note: See TracChangeset
for help on using the changeset viewer.