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() {
410
410
// Ensure the existing query arg is present in the URL.
411
411
add_filter (
412
412
'admin_url ' ,
413
- function ( $ url ) {
413
+ static function ( $ url ) {
414
414
return add_query_arg ( 'existing_arg ' , 'value ' , $ url );
415
415
}
416
416
);
@@ -430,7 +430,7 @@ public function test_wp_customize_url_with_existing_theme_query_arg() {
430
430
// Ensure the theme query arg is replaced with the new value.
431
431
add_filter (
432
432
'admin_url ' ,
433
- function ( $ url ) {
433
+ static function ( $ url ) {
434
434
return add_query_arg ( 'theme ' , 'to-be-replaced ' , $ url );
435
435
}
436
436
);
@@ -450,7 +450,7 @@ public function test_wp_customize_url_with_multiple_theme_query_args() {
450
450
// Ensure the theme query arg is replaced with the new value.
451
451
add_filter (
452
452
'admin_url ' ,
453
- function ( $ url ) {
453
+ static function ( $ url ) {
454
454
return add_query_arg ( array ( 'theme ' => array ( 'to-be-replaced-1 ' , 'to-be-replaced-2 ' ) ), $ url );
455
455
}
456
456
);
You can’t perform that action at this time.
0 commit comments