Make WordPress Core

Opened 17 months ago

Closed 17 months ago

Last modified 17 months ago

#59772 closed defect (bug) (invalid)

6.3 block themes require index.php if current theme is not block based

Reported by: dgaidula's profile dgaidula Owned by:
Milestone: Priority: normal
Severity: major Version: 6.3.2
Component: Themes Keywords:
Focuses: Cc:

Description

If the currently activated theme is not block based, WP 6.3 will report all block based themes as broken until adding an empty index.php at root of theme. This appears to be related to the new '$this->is_block_theme()' check introduced into class-wp-theme.php with 6.3+. I rolled back to WP 6.2.3 and non-block based and block-based themes can co-exist without the warning. The error message thrown is non-obvious what to fix since the perfectly functioning block-based themes 2023 1.2 include suddenly break with message about missing files that aren't missing.

Change History (5)

#1 @rajinsharwar
17 months ago

  • Keywords reporter-feedback added

Hi @dgaidula, thanks for your ticket. I have my site at WP 6.3.1. I activated my non-block-based theme and then installed the TT3 theme (Which is a block theme). But, I didn't notice any such issues you mentioned. Is there any step I missed?

#2 @dgaidula
17 months ago

Did you try going to Appearance > Themes after doing installing TT3?

#3 @dgaidula
17 months ago

  • Keywords reporter-feedback removed
  • Resolution set to invalid
  • Status changed from new to closed

just tested this again and it seems to be related to Roots/sage 9.0 theme. If I remove this theme then the block-based themes work correctly without the additional index.php. Sorry for wasting your time, thanks for verifying.

#4 @rajinsharwar
17 months ago

No issues, glad that you found the issue :)

#5 @SergeyBiryukov
17 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.