Skip to content

Commit 885bddd

Browse files
committed
Add missing static to closure
1 parent 0a6564e commit 885bddd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wp-includes/script-loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3732,7 +3732,7 @@ static function () use ( $capture_late_styles ) {
37323732
// Replace placeholder with the captured late styles.
37333733
add_filter(
37343734
'wp_template_enhancement_output_buffer',
3735-
function ( $buffer ) use ( $placeholder, &$printed_block_styles, &$printed_late_styles ) {
3735+
static function ( $buffer ) use ( $placeholder, &$printed_block_styles, &$printed_late_styles ) {
37363736

37373737
// Anonymous subclass of WP_HTML_Tag_Processor which exposes underlying bookmark spans.
37383738
$processor = new class( $buffer ) extends WP_HTML_Tag_Processor {

0 commit comments

Comments
 (0)