[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Server-side rendering of the `core/gallery` block.
File Size: | 183 lines (6 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
block_core_gallery_data_id_backcompatibility( $parsed_block ) X-Ref |
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. param: array $parsed_block The block being rendered. return: array The migrated block object. |
block_core_gallery_render( $attributes, $content ) X-Ref |
Renders the `core/gallery` block on the server. param: array $attributes Attributes of the block being rendered. param: string $content Content of the block being rendered. return: string The content of the block being rendered. |
register_block_core_gallery() X-Ref |
No description |
Generated : Thu Nov 21 08:20:01 2024 | Cross-referenced by PHPXref |