File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -3645,15 +3645,6 @@ function wp_hoist_late_printed_styles() {
36453645 return ;
36463646 }
36473647
3648- /*
3649- * While normally late styles are printed, there is a filter to disable prevent this, so this makes sure they are
3650- * printed. Note that this filter was intended to control whether to print the styles queued too late for the HTML
3651- * head. This filter was introduced in <https://core.trac.wordpress.org/ticket/9346>. However, with the template
3652- * enhancement output buffer, essentially no style can be enqueued too late, because an output buffer filter can
3653- * always hoist it to the HEAD.
3654- */
3655- add_filter ( 'print_late_styles ' , '__return_true ' , PHP_INT_MAX ); // TODO: Remove.
3656-
36573648 /*
36583649 * Print a placeholder comment where the late styles can be hoisted from the footer to be printed in the header
36593650 * by means of a filter below on the template enhancement output buffer.
@@ -3741,7 +3732,7 @@ public function get_span(): WP_HTML_Span {
37413732 }
37423733 };
37433734
3744- // TODO: If there are no block styles to print, it would be nice to not have to replace the placehoolder comment.
3735+ // TODO: If there are no block styles to print, it would be nice to not have to replace the placeholder comment.
37453736 // Locate the inline style for the 'wp-block-library' stylesheet which probably has the placeholder comment.
37463737 while ( $ processor ->next_tag ( array ( 'tag_name ' => 'STYLE ' ) ) ) {
37473738 if (
Original file line number Diff line number Diff line change @@ -1666,9 +1666,6 @@ static function () {
16661666 wp_hoist_late_printed_styles ();
16671667 }
16681668
1669- // Ensure late styles are printed.
1670- $ this ->assertTrue ( apply_filters ( 'print_late_styles ' , true ), 'Expected late style printing to be forced. ' );
1671-
16721669 // Simulate wp_head.
16731670 $ head_output = get_echo ( 'wp_head ' );
16741671
You can’t perform that action at this time.
0 commit comments