Make WordPress Core

Ticket #58405: 58405.diff

File 58405.diff, 638 bytes (added by nihar007, 3 years ago)
  • src/wp-includes/class-wp-theme.php

    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 { 
    363363                        $theme_path     = $this->theme_root . '/' . $this->stylesheet;
    364364
    365365                        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()
    368367                                && ! file_exists( $theme_path . '/index.php' )
    369368                        ) {
    370369                                $error_message = sprintf(