From f57070bfd1a7f0b2d437678ae823c3329f83c264 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 7 Oct 2021 13:15:59 +0000 Subject: [PATCH] Docs: Add a `@since` note for the new `$parent_block` parameter of several filters: * `pre_render_block` * `render_block_data` * `render_block_context` Follow-up to [51894]. See #51612. Built from https://develop.svn.wordpress.org/trunk@51895 git-svn-id: http://core.svn.wordpress.org/trunk@51488 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/blocks.php | 3 +++ wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/blocks.php b/wp-includes/blocks.php index 0ab0e7ca6a..72330aa578 100644 --- a/wp-includes/blocks.php +++ b/wp-includes/blocks.php @@ -819,6 +819,7 @@ function render_block( $parsed_block ) { * Allows render_block() to be short-circuited, by returning a non-null value. * * @since 5.1.0 + * @since 5.9.0 The `$parent_block` parameter was added. * * @param string|null $pre_render The pre-rendered content. Default null. * @param array $parsed_block The block being rendered. @@ -835,6 +836,7 @@ function render_block( $parsed_block ) { * Filters the block being rendered in render_block(), before it's processed. * * @since 5.1.0 + * @since 5.9.0 The `$parent_block` parameter was added. * * @param array $parsed_block The block being rendered. * @param array $source_block An un-modified copy of $parsed_block, as it appeared in the source content. @@ -860,6 +862,7 @@ function render_block( $parsed_block ) { * Filters the default context provided to a rendered block. * * @since 5.5.0 + * @since 5.9.0 The `$parent_block` parameter was added. * * @param array $context Default context. * @param array $parsed_block Block being rendered, filtered by `render_block_data`. diff --git a/wp-includes/version.php b/wp-includes/version.php index 154e4b0d71..06e388c58b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-51894'; +$wp_version = '5.9-alpha-51895'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.