@@ -408,9 +408,12 @@ public function test_wp_customize_url_with_existing_query_args() {
408408 $ clean_admin_url = admin_url ( 'customize.php ' );
409409
410410 // Ensure the existing query arg is present in the URL.
411- add_filter ( 'admin_url ' , function ( $ url ) {
412- return add_query_arg ( 'existing_arg ' , 'value ' , $ url );
413- } );
411+ add_filter (
412+ 'admin_url ' ,
413+ function ( $ url ) {
414+ return add_query_arg ( 'existing_arg ' , 'value ' , $ url );
415+ }
416+ );
414417 $ this ->assertSame ( esc_url ( $ clean_admin_url . '?existing_arg=value&theme=foo ' ), wp_customize_url ( 'foo ' ) );
415418 }
416419
@@ -425,9 +428,12 @@ public function test_wp_customize_url_with_existing_theme_query_arg() {
425428 $ clean_admin_url = admin_url ( 'customize.php ' );
426429
427430 // Ensure the theme query arg is replaced with the new value.
428- add_filter ( 'admin_url ' , function ( $ url ) {
429- return add_query_arg ( 'theme ' , 'to-be-replaced ' , $ url );
430- } );
431+ add_filter (
432+ 'admin_url ' ,
433+ function ( $ url ) {
434+ return add_query_arg ( 'theme ' , 'to-be-replaced ' , $ url );
435+ }
436+ );
431437 $ this ->assertSame ( esc_url ( $ clean_admin_url . '?theme=foo ' ), wp_customize_url ( 'foo ' ) );
432438 }
433439
@@ -442,9 +448,12 @@ public function test_wp_customize_url_with_multiple_theme_query_args() {
442448 $ clean_admin_url = admin_url ( 'customize.php ' );
443449
444450 // Ensure the theme query arg is replaced with the new value.
445- add_filter ( 'admin_url ' , function ( $ url ) {
446- return add_query_arg ( [ 'theme ' => [ 'to-be-replaced-1 ' , 'to-be-replaced-2 ' ] ], $ url );
447- } );
451+ add_filter (
452+ 'admin_url ' ,
453+ function ( $ url ) {
454+ return add_query_arg ( [ 'theme ' => [ 'to-be-replaced-1 ' , 'to-be-replaced-2 ' ] ], $ url );
455+ }
456+ );
448457 $ this ->assertSame ( esc_url ( $ clean_admin_url . '?theme=foo ' ), wp_customize_url ( 'foo ' ) );
449458 }
450459
0 commit comments