From 9df9e28f65fb5da8b65e08e3aeceed061f18638d Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Fri, 10 Nov 2023 18:59:59 +0000 Subject: [PATCH] Tests: Fix incorrect check for block themes in legacy PHPUnit test for themes. Props mukesh27. Fixes #59881. git-svn-id: https://develop.svn.wordpress.org/trunk@57104 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/theme.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index 7260d6af57..82a5d58201 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -317,7 +317,7 @@ class Tests_Theme extends WP_UnitTestCase { $this->assertSame( $root_uri . '/' . get_template(), get_template_directory_uri() ); // Skip block themes for get_query_template() tests since this test is focused on classic templates. - if ( wp_is_block_theme() && current_theme_supports( 'block-templates' ) ) { + if ( wp_is_block_theme() || wp_theme_has_theme_json() ) { continue; }