Changeset 55885 for trunk/src/wp-includes/class-wp-theme.php
- Timestamp:
- 06/06/2023 04:17:02 PM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-theme.php
r55703 r55885 363 363 $theme_path = $this->theme_root . '/' . $this->stylesheet; 364 364 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. 368 && ! file_exists( $theme_path . '/index.php' ) 369 ) { 365 if ( ! $this->is_block_theme() && ! file_exists( $theme_path . '/index.php' ) ) { 370 366 $error_message = sprintf( 371 367 /* translators: 1: templates/index.html, 2: index.php, 3: Documentation URL, 4: Template, 5: style.css */ … … 381 377 'theme', 382 378 array( 383 'block_theme' => $this-> is_block_theme(),379 'block_theme' => $this->block_theme, 384 380 'headers' => $this->headers, 385 381 'errors' => $this->errors,
Note: See TracChangeset
for help on using the changeset viewer.