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
This commit is contained in:
Felix Arntz 2023-11-10 18:59:59 +00:00
parent 155017ae7b
commit 9df9e28f65

View File

@ -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;
}