mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@53780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -277,7 +277,7 @@ class WP_Block {
|
||||
* @since 5.0.0
|
||||
* @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 WP_Block $instance The block instance.
|
||||
*/
|
||||
@@ -292,7 +292,7 @@ class WP_Block {
|
||||
* @since 5.7.0
|
||||
* @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 WP_Block $instance The block instance.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user