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

WordPress Trac noreply at wordpress.org
Tue May 10 13:25:17 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         |     Focuses:
------------------------------+---------------------

Comment (by Boniu91):

 == Test Report

 === Env
 * WordPress 6.0-beta3-53290-src and patch version
 * Theme: Twenty Twenty Two (edited), Twenty Twenty (edited)

 === Steps to test
 1. Upload **block** theme that:
 - doesn't have `index.php` nor `templates/index.html`
 - doesn't have `index.php` but has `templates/index.html`
 - has `index.php` but doesn't have `templates/index.html`
 - has `index.php` and `templates/index.html`
 2. Upload **non block** theme that:
 - doesn't have `index.php` nor `templates/index.html`
 - doesn't have `index.php` but has `templates/index.html`
 - has `index.php` but doesn't have `templates/index.html`
 - has `index.php` and `templates/index.html`

 === Is it possible to upload a theme (before|after the patch)?
 Block theme:
 - ❌|❌
 - ❌|✅
 - ✅|✅
 - ✅|✅

 Non block theme:
 - ❌|❌
 - ❌|✅
 - ✅|✅
 - ✅|✅

 === Question
 Should it be allowed to upload **non block** theme that doesn't have
 `index.php` but has `templates/index.html`?

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


More information about the wp-trac mailing list