File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tests/phpunit/tests/theme Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ public function test_wp_customize_url_with_existing_query_args() {
410410 // Ensure the existing query arg is present in the URL.
411411 add_filter (
412412 'admin_url ' ,
413- function ( $ url ) {
413+ static function ( $ url ) {
414414 return add_query_arg ( 'existing_arg ' , 'value ' , $ url );
415415 }
416416 );
@@ -430,7 +430,7 @@ public function test_wp_customize_url_with_existing_theme_query_arg() {
430430 // Ensure the theme query arg is replaced with the new value.
431431 add_filter (
432432 'admin_url ' ,
433- function ( $ url ) {
433+ static function ( $ url ) {
434434 return add_query_arg ( 'theme ' , 'to-be-replaced ' , $ url );
435435 }
436436 );
@@ -450,7 +450,7 @@ public function test_wp_customize_url_with_multiple_theme_query_args() {
450450 // Ensure the theme query arg is replaced with the new value.
451451 add_filter (
452452 'admin_url ' ,
453- function ( $ url ) {
453+ static function ( $ url ) {
454454 return add_query_arg ( array ( 'theme ' => array ( 'to-be-replaced-1 ' , 'to-be-replaced-2 ' ) ), $ url );
455455 }
456456 );
You can’t perform that action at this time.
0 commit comments