From 5517500b74dcb7676c295503cce498b7974f066c Mon Sep 17 00:00:00 2001 From: David Paul Ellenwood Date: Fri, 22 Nov 2024 13:11:46 -0600 Subject: [PATCH] [MOOSE-169]: [MOOSE-169] Remove unnecessary block_support() features. These are already applied for block themes. --- .../core/src/Theme_Config/Theme_Support.php | 42 +++---------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/wp-content/plugins/core/src/Theme_Config/Theme_Support.php b/wp-content/plugins/core/src/Theme_Config/Theme_Support.php index c28f1d88..93ee09f8 100644 --- a/wp-content/plugins/core/src/Theme_Config/Theme_Support.php +++ b/wp-content/plugins/core/src/Theme_Config/Theme_Support.php @@ -8,10 +8,6 @@ class Theme_Support { * @action after_setup_theme */ public function add_theme_supports(): void { - $this->support_thumbnails(); - $this->support_title_tag(); - $this->support_responsive_embeds(); - $this->support_html5(); $this->remove_support_block_widgets(); } @@ -22,45 +18,17 @@ public function disable_block_patterns(): void { remove_theme_support( 'core-block-patterns' ); } + /** + * Disable Openverse Media Category. + * + * @param array $settings + */ public function disable_openverse_media_category( array $settings ): array { $settings['enableOpenverseMediaCategory'] = false; return $settings; } - /** - * Supports: enable Featured Images - */ - private function support_thumbnails(): void { - add_theme_support( 'post-thumbnails' ); - } - - /** - * Supports: enable Document Title Tag - */ - private function support_title_tag(): void { - add_theme_support( 'title-tag' ); - } - - private function support_responsive_embeds(): void { - add_theme_support( 'responsive-embeds' ); - } - - /** - * Support: switch core WordPress markup to output valid HTML5 - */ - private function support_html5(): void { - add_theme_support( 'html5', [ - 'search-form', - 'comment-form', - 'comment-list', - 'gallery', - 'caption', - 'script', - 'style', - ] ); - } - /** * Disable Block Editor Widget Support */