From fa1c8211267553ccb5431f31c30a0fba0e1c3ab5 Mon Sep 17 00:00:00 2001 From: Alex Lende Date: Fri, 17 Dec 2021 11:00:13 -0600 Subject: [PATCH] Remove unused $types check --- lib/compat/wordpress-5.9/get-global-styles-and-settings.php | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/compat/wordpress-5.9/get-global-styles-and-settings.php b/lib/compat/wordpress-5.9/get-global-styles-and-settings.php index 51245b37716d0e..b75584b8697885 100644 --- a/lib/compat/wordpress-5.9/get-global-styles-and-settings.php +++ b/lib/compat/wordpress-5.9/get-global-styles-and-settings.php @@ -144,7 +144,6 @@ function wp_get_global_styles_svg_filters() { // It's cached by theme to make sure that theme switching clears the cache. $transient_name = 'gutenberg_global_styles_svg_filters_' . get_stylesheet(); $can_use_cached = ( - ( empty( $types ) ) && ( ! defined( 'WP_DEBUG' ) || ! WP_DEBUG ) && ( ! defined( 'SCRIPT_DEBUG' ) || ! SCRIPT_DEBUG ) && ( ! defined( 'REST_REQUEST' ) || ! REST_REQUEST ) &&