You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -909,6 +909,23 @@ public function test_wp_load_block_styles_on_demand_in_classic_themes_in_block_t
909
909
$this->assertFalse( has_action( 'wp_template_enhancement_output_buffer_started', 'wp_hoist_late_printed_styles' ), 'Expect wp_template_enhancement_output_buffer_started action NOT to be added for block themes.' );
910
910
}
911
911
912
+
/**
913
+
* Tests that wp_load_block_styles_on_demand_in_classic_themes() does not add filters for classic themes then output buffering is blocked.
$this->assertFalse( has_filter( 'should_load_separate_core_block_assets' ), 'Expect should_load_separate_core_block_assets filter NOT to be added for block themes.' );
925
+
$this->assertFalse( has_filter( 'should_load_block_assets_on_demand', '__return_true' ), 'Expect should_load_block_assets_on_demand filter NOT to be added for block themes.' );
926
+
$this->assertFalse( has_action( 'wp_template_enhancement_output_buffer_started', 'wp_hoist_late_printed_styles' ), 'Expect wp_template_enhancement_output_buffer_started action NOT to be added for block themes.' );
927
+
}
928
+
912
929
/**
913
930
* Tests that wp_always_load_block_styles_on_demand adds the expected filters for classic themes.
914
931
*
@@ -929,7 +946,7 @@ public function test_wp_load_block_styles_on_demand_in_classic_themes_in_classic
929
946
}
930
947
931
948
/**
932
-
* Tests that wp_hoist_late_printed_styles adds a placeholder for delayed CSS, then removes it and adds all CSS to the head including late enqueued styles.
949
+
* Tests that wp_hoist_late_printed_styles() adds a placeholder for delayed CSS, then removes it and adds all CSS to the head including late enqueued styles.
0 commit comments