[wp-trac] [WordPress Trac] #54130: force_balance_tags breaks new gallery block

WordPress Trac noreply at wordpress.org
Thu Sep 16 03:08:23 UTC 2021


#54130: force_balance_tags breaks new gallery block
--------------------------+-----------------------------
 Reporter:  glendaviesnz  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Gallery       |    Version:  trunk
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The refactored gallery block uses a nested
 `<figure><figure></figure></figure>` structure, as recommended by w3c for
 image collections.

 If a site has the use_balanceTags option set to 1, then the Gallery block
 breaks on save as  force_balance_tags restructures it from
 `<figure><figure></figure></figure>` to
 `<figure></figure><figure></figure>`.

 This is because `figure` is not listed as a directly nestable element at
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/formatting.php#L2485

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54130>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list