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
This commit is contained in:
Sergey Biryukov 2021-10-07 13:15:59 +00:00
parent 2dc8f381ca
commit f57070bfd1
2 changed files with 4 additions and 1 deletions

View File

@ -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`.

View File

@ -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.