Docs: Improve parameter descriptions in `render_block` and `render_block_*` filters.

The former `$block_content` parameter descriptions were too opinionated as block content can be appended, prepended, nested, removed, etc.

Props milana_cap.
Fixes #56286.
See #55646.

Built from https://develop.svn.wordpress.org/trunk@53780


git-svn-id: http://core.svn.wordpress.org/trunk@53339 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
audrasjb 2022-07-26 13:00:16 +00:00
parent 87464289c3
commit 82edcc17f5
2 changed files with 3 additions and 3 deletions

View File

@ -277,7 +277,7 @@ class WP_Block {
* @since 5.0.0 * @since 5.0.0
* @since 5.9.0 The `$instance` parameter was added. * @since 5.9.0 The `$instance` parameter was added.
* *
* @param string $block_content The block content about to be appended. * @param string $block_content The block content.
* @param array $block The full block, including name and attributes. * @param array $block The full block, including name and attributes.
* @param WP_Block $instance The block instance. * @param WP_Block $instance The block instance.
*/ */
@ -292,7 +292,7 @@ class WP_Block {
* @since 5.7.0 * @since 5.7.0
* @since 5.9.0 The `$instance` parameter was added. * @since 5.9.0 The `$instance` parameter was added.
* *
* @param string $block_content The block content about to be appended. * @param string $block_content The block content.
* @param array $block The full block, including name and attributes. * @param array $block The full block, including name and attributes.
* @param WP_Block $instance The block instance. * @param WP_Block $instance The block instance.
*/ */

View File

@ -16,7 +16,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '6.1-alpha-53779'; $wp_version = '6.1-alpha-53780';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.