summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/gallery.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--wp-includes/blocks/gallery.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/wp-includes/blocks/gallery.php b/wp-includes/blocks/gallery.php
index 292ddea..5af6be1 100644
--- a/wp-includes/blocks/gallery.php
+++ b/wp-includes/blocks/gallery.php
@@ -13,6 +13,8 @@
* we add a custom `data-id` attribute before rendering the gallery
* so that the Image Block can pick it up in its render_callback.
*
+ * @since 5.9.0
+ *
* @param array $parsed_block The block being rendered.
* @return array The migrated block object.
*/
@@ -35,6 +37,8 @@ add_filter( 'render_block_data', 'block_core_gallery_data_id_backcompatibility'
/**
* Renders the `core/gallery` block on the server.
*
+ * @since 6.0.0
+ *
* @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.
@@ -127,7 +131,7 @@ function block_core_gallery_render( $attributes, $content ) {
* the `$parsed_block['innerBlocks']` via the `render_block_data` hook.
* However, this hook doesn't apply inner block updates when blocks are
* nested.
- * @todo: In the future, if this hook supports updating innerBlocks in
+ * @todo In the future, if this hook supports updating innerBlocks in
* nested blocks, it should be refactored.
*
* @see: https://github.com/WordPress/gutenberg/pull/58733
@@ -164,6 +168,8 @@ function block_core_gallery_render( $attributes, $content ) {
}
/**
* Registers the `core/gallery` block on server.
+ *
+ * @since 5.9.0
*/
function register_block_core_gallery() {
register_block_type_from_metadata(