[wp-trac] [WordPress Trac] #55682: Allow block themes to be uploaded without index.php

WordPress Trac noreply at wordpress.org
Sun May 15 23:37:26 UTC 2022

#55682: Allow block themes to be uploaded without index.php
 Reporter:  FlorianBrinkmann                         |       Owner:  (none)
     Type:  enhancement                              |      Status:  new
 Priority:  normal                                   |   Milestone:  6.0
Component:  Themes                                   |     Version:  trunk
 Severity:  normal                                   |  Resolution:
 Keywords:  has-patch has-testing-info dev-feedback  |     Focuses:

Comment (by peterwilsoncc):

 > As a block theme may instead use `block-templates/index.html` for BC
 reasons [https://github.com/WordPress/wordpress-
 /class-wp-theme.php#L1484 ref], should the PR also account for this file?

 Yes, it should.

 I think this is a wider bug, neither of the following check for the legacy
 folder configuration:

 * `validate_current_theme()`
 * `WP_Theme::__construct`

 @aristath or @poena, could I get a logic check on this, would this be
 problematic in any way?

Ticket URL: <https://core.trac.wordpress.org/ticket/55682#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list