From 7282af78b3a2277875cac90120e8eeb1fabaf093 Mon Sep 17 00:00:00 2001 From: mrleemon Date: Fri, 14 Jul 2023 22:23:29 +0200 Subject: [PATCH 1/3] Replace wp_is_block_theme with wp_theme_has_theme_json --- lib/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/script-loader.php b/lib/script-loader.php index 2b5c7bb08a676f..84cc51541518d2 100644 --- a/lib/script-loader.php +++ b/lib/script-loader.php @@ -63,7 +63,7 @@ function gutenberg_enqueue_global_styles() { * @since 6.2.0 */ function gutenberg_enqueue_global_styles_custom_css() { - if ( ! wp_is_block_theme() ) { + if ( ! wp_theme_has_theme_json() ) { return; } From 75506bd912b0fbd7961593c0f96bac8dbfeb3c76 Mon Sep 17 00:00:00 2001 From: mrleemon Date: Sun, 10 Sep 2023 08:19:29 +0200 Subject: [PATCH 2/3] Update script-loader.php --- lib/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/script-loader.php b/lib/script-loader.php index 84cc51541518d2..0f1b9fa172d7f1 100644 --- a/lib/script-loader.php +++ b/lib/script-loader.php @@ -63,7 +63,7 @@ function gutenberg_enqueue_global_styles() { * @since 6.2.0 */ function gutenberg_enqueue_global_styles_custom_css() { - if ( ! wp_theme_has_theme_json() ) { + if ( ! wp_is_block_theme() && ! wp_theme_has_theme_json() ) return; } From 49f9af21b901b2c4177c4c7e09f241a14a8e788e Mon Sep 17 00:00:00 2001 From: mrleemon Date: Sun, 10 Sep 2023 08:21:57 +0200 Subject: [PATCH 3/3] Update script-loader.php --- lib/script-loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/script-loader.php b/lib/script-loader.php index 0f1b9fa172d7f1..dbdb4cd5f16638 100644 --- a/lib/script-loader.php +++ b/lib/script-loader.php @@ -63,7 +63,7 @@ function gutenberg_enqueue_global_styles() { * @since 6.2.0 */ function gutenberg_enqueue_global_styles_custom_css() { - if ( ! wp_is_block_theme() && ! wp_theme_has_theme_json() ) + if ( ! wp_is_block_theme() && ! wp_theme_has_theme_json() ) { return; }