diff --git a/tests/phpunit/tests/theme/WPTheme.php b/tests/phpunit/tests/theme/WPTheme.php index 16e093a952..e64aa2e7cf 100644 --- a/tests/phpunit/tests/theme/WPTheme.php +++ b/tests/phpunit/tests/theme/WPTheme.php @@ -122,7 +122,7 @@ class Tests_Theme_WPTheme extends WP_UnitTestCase { $this->assertEquals( get_theme_root_uri() . '/subdir/theme%20with%20spaces', get_template_directory_uri() ); remove_filter( 'stylesheet', $callback ); - add_filter( 'template', $callback ); + remove_filter( 'template', $callback ); } function filter_theme_with_spaces() {