summaryrefslogtreecommitdiffstats
path: root/wp-includes/blocks/template-part.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/blocks/template-part.php')
-rw-r--r--wp-includes/blocks/template-part.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/wp-includes/blocks/template-part.php b/wp-includes/blocks/template-part.php
index 4332bb3..be867c4 100644
--- a/wp-includes/blocks/template-part.php
+++ b/wp-includes/blocks/template-part.php
@@ -8,6 +8,10 @@
/**
* Renders the `core/template-part` block on the server.
*
+ * @since 5.9.0
+ *
+ * @global WP_Embed $wp_embed WordPress Embed object.
+ *
* @param array $attributes The block attributes.
*
* @return string The render.
@@ -174,6 +178,8 @@ function render_block_core_template_part( $attributes ) {
/**
* Returns an array of area variation objects for the template part block.
*
+ * @since 6.1.0
+ *
* @param array $instance_variations The variations for instances.
*
* @return array Array containing the block variation objects.
@@ -212,6 +218,8 @@ function build_template_part_block_area_variations( $instance_variations ) {
/**
* Returns an array of instance variation objects for the template part block
*
+ * @since 6.1.0
+ *
* @return array Array containing the block variation objects.
*/
function build_template_part_block_instance_variations() {
@@ -266,6 +274,8 @@ function build_template_part_block_instance_variations() {
/**
* Returns an array of all template part block variations.
*
+ * @since 5.9.0
+ *
* @return array Array containing the block variation objects.
*/
function build_template_part_block_variations() {
@@ -276,6 +286,8 @@ function build_template_part_block_variations() {
/**
* Registers the `core/template-part` block on the server.
+ *
+ * @since 5.9.0
*/
function register_block_core_template_part() {
register_block_type_from_metadata(