Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion packages/block-library/src/tab/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/**
* Render callback for core/tab.
*
* @since 7.0.0
*
* @param array $attributes Block attributes.
* @param string $content Block content.
*
Expand Down Expand Up @@ -57,7 +59,7 @@ function block_core_tab_render( array $attributes, string $content ): string {
*
* @hook init
*
* @since 6.9.0
* @since 7.0.0
*/
function register_block_core_tab() {
register_block_type_from_metadata(
Expand Down
4 changes: 3 additions & 1 deletion packages/block-library/src/tabs-menu-item/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
*
* Applies IAPI directives and tab-specific attributes to the saved content.
*
* @since 7.0.0
*
* @param array $attributes Block attributes.
* @param string $content Block content.
* @param \WP_Block $block WP_Block instance.
Expand Down Expand Up @@ -67,7 +69,7 @@ function block_core_tabs_menu_item_render_callback( array $attributes, string $c
/**
* Registers the `core/tabs-menu-item` block on the server.
*
* @since 6.9.0
* @since 7.0.0
*/
function register_block_core_tabs_menu_item() {
register_block_type_from_metadata(
Expand Down
4 changes: 3 additions & 1 deletion packages/block-library/src/tabs-menu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/**
* Render callback for core/tabs-menu.
*
* @since 7.0.0
*
* @param array $attributes Block attributes.
* @param string $content Block content (contains the tabs-menu-item template).
* @param \WP_Block $block WP_Block instance.
Expand Down Expand Up @@ -61,7 +63,7 @@ function block_core_tabs_menu_render_callback( array $attributes, string $conten
/**
* Registers the `core/tabs-menu` block on the server.
*
* @since 6.9.0
* @since 7.0.0
*/
function register_block_core_tabs_menu() {
register_block_type_from_metadata(
Expand Down
8 changes: 7 additions & 1 deletion packages/block-library/src/tabs/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
/**
* Extract tabs list from tab-panel innerblocks.
*
* @since 7.0.0
*
* @param array $innerblocks Parsed inner blocks of tabs block.
*
* @return array List of tabs with id, label, index.
Expand Down Expand Up @@ -56,6 +58,8 @@ function block_core_tabs_generate_tabs_list( array $innerblocks = array() ): arr
* It is more performant to do this here, once, rather than in the tabs render and tabs context filters.
* In this way core/tabs is both a provider and a consumer of the core/tabs-list context.
*
* @since 7.0.0
*
* @param array $context Default block context.
* @param array $parsed_block The block being rendered.
*
Expand All @@ -75,6 +79,8 @@ function block_core_tabs_provide_context( array $context, array $parsed_block ):
/**
* Render callback for core/tabs.
*
* @since 7.0.0
*
* @param array $attributes Block attributes.
* @param string $content Block content.
* @param \WP_Block $block WP_Block instance.
Expand Down Expand Up @@ -150,7 +156,7 @@ function block_core_tabs_render_block_callback( array $attributes, string $conte
/**
* Registers the `core/tabs` block on the server.
*
* @since 6.8.0
* @since 7.0.0
*/
function register_block_core_tabs() {
register_block_type_from_metadata(
Expand Down
Loading