Skip to content

Commit de25798

Browse files
committed
Remove static from closure to appease a confused PHPCS
FILE: src/wp-includes/script-loader.php -------------------------------------------------------------------------------- FOUND 2 ERRORS AFFECTING 2 LINES -------------------------------------------------------------------------------- 3584 | ERROR | Closures / anonymous functions declared as static do not have | | access to $this | | (PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundInStatic) 3586 | ERROR | Closures / anonymous functions declared as static do not have | | access to $this | | (PHPCompatibility.FunctionDeclarations.NewClosure.ThisFoundInStatic) --------------------------------------------------------------------------------
1 parent fcf196e commit de25798

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
@@ -3576,7 +3576,7 @@ static function () use ( $capture_late_styles ) {
35763576
// Replace placeholder with the captured late styles.
35773577
add_filter(
35783578
'wp_template_enhancement_output_buffer',
3579-
static function ( $buffer ) use ( $placeholder, &$printed_late_styles ) {
3579+
function ( $buffer ) use ( $placeholder, &$printed_late_styles ) {
35803580

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

0 commit comments

Comments
 (0)