A file that was eight hundred lines in 2022, and what is left in it.
add_action( 'after_setup_theme', function () {
add_theme_support( 'wp-block-styles' );
add_theme_support( 'editor-styles' );
add_editor_style( 'assets/css/editor.css' );
} );
add_action( 'wp_enqueue_scripts', function () {
wp_enqueue_style( 'turkerdev', get_theme_file_uri( 'assets/css/main.css' ),
array(), turkerdev_asset_version( 'main.css' ) );
} );
remove_theme_support( 'core-block-patterns' );
Everything else moved to a plugin, and the test for each was whether it should survive a theme switch. What remains is genuinely theme-scoped: the styles, the editor styles, and the removal of core’s pattern library so the theme’s own patterns are findable.