block_core_gallery_data_id_backcompatibility


block_core_gallery_data_id_backcompatibility ( $parsed_block )

Parameters:
  • (array) parsed_block The block being rendered.
Returns:
  • (array) The migrated block object.
Defined at:

Description

Handles backwards compatibility for Gallery Blocks, whose images feature a `data-id` attribute.Now that the Gallery Block contains inner Image Blocks, we add a custom `data-id` attribute before rendering the gallery so that the Image Block can pick it up in its render_callback.

Related Functions

block_core_navigation_typographic_presets_backcompatibility, block_core_calendar_update_has_published_posts, block_core_gallery_render, block_core_calendar_has_published_posts, get_block_core_avatar_border_attributes

Top Google Results

User discussions

wpseek mobile