diff --git a/tests/php/src/Admin/PolyfillsTest.php b/tests/php/src/Admin/PolyfillsTest.php index 8fdb9035ba7..d3587ff8f36 100644 --- a/tests/php/src/Admin/PolyfillsTest.php +++ b/tests/php/src/Admin/PolyfillsTest.php @@ -105,11 +105,10 @@ public function test_registration() { * * @param string $handle Script handle. * @param string $position Script position. - * @param bool $display Whether to display the script. * * @return string */ - public static function get_inline_script( $handle, $position = 'after', $display = false ) { + public static function get_inline_script( $handle, $position = 'after' ) { if ( method_exists( wp_scripts(), 'get_inline_script_tag' ) ) { $script = wp_scripts()->get_inline_script_tag( $handle, $position ); @@ -119,7 +118,7 @@ public static function get_inline_script( $handle, $position = 'after', $display return $script; } else { - return wp_scripts()->print_inline_script( $handle, $position, $display ); + return wp_scripts()->print_inline_script( $handle, $position, false ); } } }