From 5e746bcc2d8850e0e2f24af4d8bd97a2d10772cd Mon Sep 17 00:00:00 2001 From: Tetrakern <26898880+Tetrakern@users.noreply.github.com> Date: Tue, 15 Aug 2023 18:24:14 +0200 Subject: [PATCH] Make sure widgets are dead --- includes/functions/_theme_setup.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/includes/functions/_theme_setup.php b/includes/functions/_theme_setup.php index 69050a43..868fd716 100644 --- a/includes/functions/_theme_setup.php +++ b/includes/functions/_theme_setup.php @@ -103,6 +103,12 @@ function fictioneer_theme_setup() { // Remove block patterns remove_theme_support( 'core-block-patterns' ); + // Remove widget support... + if ( get_option( 'fictioneer_disable_all_widgets' ) ) { + remove_theme_support( 'widgets' ); + remove_theme_support( 'widgets-block-editor' ); + } + // Add new size for cover images used on story pages add_image_size( 'cover', 400 );