diff --git a/src/wp-includes/class-wp-theme.php b/src/wp-includes/class-wp-theme.php
index 3b520782c1..210ff16b78 100644
|
a
|
b
|
final class WP_Theme implements ArrayAccess { |
| 363 | 363 | $theme_path = $this->theme_root . '/' . $this->stylesheet; |
| 364 | 364 | |
| 365 | 365 | if ( |
| 366 | | ! file_exists( $theme_path . '/templates/index.html' ) |
| 367 | | && ! file_exists( $theme_path . '/block-templates/index.html' ) // Deprecated path support since 5.9.0. |
| | 366 | ! $this->is_block_theme() |
| 368 | 367 | && ! file_exists( $theme_path . '/index.php' ) |
| 369 | 368 | ) { |
| 370 | 369 | $error_message = sprintf( |