[wp-trac] [WordPress Trac] #60856: Group block variations added via get_block_type_variations aren't loaded

WordPress Trac noreply at wordpress.org
Thu Mar 28 20:12:19 UTC 2024


#60856: Group block variations added via get_block_type_variations aren't loaded
--------------------------+-----------------------------
 Reporter:  bacoords      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Variations added to the `core/group` block via the
 `get_block_type_variations` filter do not show up in the block editor.

 It seems to be a special case where the group block variations (row,
 stack, etc) are added later on and overwrite any variations added via this
 filter. Examining the block via the console (wp.blocks.getBlockTypes())
 confirms that the variation doesn't exist at the time of the page load.

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


More information about the wp-trac mailing list