From 85243f81712cf9d51112c610bf63c0d7a3daa65b Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Wed, 8 Nov 2023 17:02:07 +0530 Subject: [PATCH] Update theme.php --- tests/phpunit/tests/theme.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/tests/theme.php b/tests/phpunit/tests/theme.php index 7260d6af57c46..c5ec347fb2762 100644 --- a/tests/phpunit/tests/theme.php +++ b/tests/phpunit/tests/theme.php @@ -344,6 +344,8 @@ public function test_switch_theme() { $this->assertSame( $child_theme_file, get_query_template( $file ) ); } elseif ( file_exists( $parent_theme_file ) ) { $this->assertSame( $parent_theme_file, get_query_template( $file ) ); + } elseif ( file_exists( ABSPATH . WPINC . '/theme-compat/' . $file . '.php' ) ) { + $this->assertSame( ABSPATH . WPINC . '/theme-compat/' . $file . '.php', get_query_template( $file ) ); } else { $this->assertSame( '', get_query_template( $file ) ); }