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

WordPress Trac noreply at wordpress.org
Fri Jan 28 00:03:37 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):

 Yeah I can add unit tests 👍

 I just noticed though that the patch doesn't exactly cover a populated
 `index.html` file that has non-block HTML in it, as `parse_blocks()` will
 parse non-block HTML as a block with `blockName => NULL`. Adding a
 modified patch with a way to achieve this - would appreciate another
 review of it.

 However, I believe that shortcodes also have `blockName => NULL`, so this
 would fail if a template consisted of only shortcodes. There may be other
 instances where `blockName => NULL` for valid block templates, but I'm not
 aware of any.

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


More information about the wp-trac mailing list