From 6d4c6a639ff9edc29d5c821cea0395fe456237e0 Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Wed, 20 Sep 2023 16:34:30 +0530 Subject: [PATCH] Update media.php --- tests/phpunit/tests/media.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/media.php b/tests/phpunit/tests/media.php index 1ef1b93d4e91a..4b3fb26e84d3e 100644 --- a/tests/phpunit/tests/media.php +++ b/tests/phpunit/tests/media.php @@ -4436,7 +4436,7 @@ public function test_wp_get_loading_optimization_attributes_should_return_empty_ $result = null; add_filter( 'the_content', - function( $content ) use ( &$result ) { + static function ( $content ) use ( &$result ) { $attr = $this->get_width_height_for_high_priority(); $result = wp_get_loading_optimization_attributes( 'img', $attr, 'something_completely_arbitrary' ); return $content;