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

WordPress Trac noreply at wordpress.org
Fri May 20 01:00:11 UTC 2022


#55682: Allow block themes to be uploaded without index.php
-------------------------------------------------+-------------------------
 Reporter:  FlorianBrinkmann                     |       Owner:
                                                 |  peterwilsoncc
     Type:  enhancement                          |      Status:  closed
 Priority:  normal                               |   Milestone:  6.0
Component:  Themes                               |     Version:  trunk
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-testing-info commit    |     Focuses:
  dev-reviewed                                   |
-------------------------------------------------+-------------------------
Changes (by peterwilsoncc):

 * owner:  (none) => peterwilsoncc
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"53417" 53417]:
 {{{
 #!CommitTicketReference repository="" revision="53417"
 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.
 Merges [53416] to the 6.0 branch.
 Fixes #55682.
 }}}

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


More information about the wp-trac mailing list