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

WordPress Trac noreply at wordpress.org
Fri May 20 00:52:44 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 commit    |     Focuses:
  dev-reviewed                                   |
-------------------------------------------------+-------------------------

Comment (by peterwilsoncc):

 This was committed to trunk in [53416] but I used the incorrect ticket
 reference.

 > In [53416] :
 >
 > Themes: Accept valid block themes.
 >
 > Updates theme validation to accept block themes. This replaces the
 requirement for an `index.php` with a requirement for either an
 `index.php`, `/templates/index.html` or the deprecated `/block-
 templates/index.html`.
 >
 > Validation is updated for theme uploads, within `WP_Theme::__construct`
 and `validate_current_theme()`.
 >
 > A block theme using the deprecated file structure is now included in the
 unit tests.
 >
 > Props peterwilsoncc, sergeybiryukov, hellofromtonya, costdev, azaozz,
 gziolo, FlorianBrinkmann, Boniu91, aristath, poena, audrasjb.

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


More information about the wp-trac mailing list