[wp-trac] [WordPress Trac] #54910: 5.9 Bug - Blank Home Page

WordPress Trac noreply at wordpress.org
Fri Jan 28 12:28:32 UTC 2022


#54910: 5.9 Bug - Blank Home Page
----------------------------------------+------------------------------
 Reporter:  cantuaria                   |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  Awaiting Review
Component:  Themes                      |     Version:  5.9
 Severity:  major                       |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by costdev):

 @andraganescu That's correct. A theme with a `templates/index.html` file
 that is either empty or contains non-block HTML will not be identified as
 a block theme. This is a possible regression - how likely is it that a
 block theme's `templates/index.html` would be empty? - Genuine question.

 In addition, a concern raised by @hellofromTonya:

  Misidentified hybrid theme as a block theme, ie a theme that has classic
 HTML and templating but also could have blocks defined in them.

 The hybrid theme issue above would not be a regression, as the mere
 existence of a `templates/index.html` with any amount of content would
 misidentify a hybrid theme as a block theme.

 Given that, we can evaluate the concern, decide whether it needs to be
 handled and attempt to handle it in this ticket, but we can also adapt
 `is_block_theme()` to cover this later if we need more time.

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


More information about the wp-trac mailing list