From 09f5f2641d60f304beaec6d7114bf88afa53643c Mon Sep 17 00:00:00 2001 From: som3669 Date: Fri, 18 Sep 2026 00:07:09 +0545 Subject: [PATCH] Docs: Document the missing parameters of `render_block_core_block()`. `render_block_core_block()` is the render callback for the `core/block` block and receives three arguments, but its docblock only documented `$attributes`. `$content` and `$block_instance` were never documented, even though `$block_instance` is used in the function body to attach the referenced pattern's blocks as inner blocks and render them. The descriptions follow the wording used by the majority of core block render callbacks. The blank line between the `@param` block and `@return` is also removed, per the inline documentation standards. See #65860. --- src/wp-includes/blocks/block.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/blocks/block.php b/src/wp-includes/blocks/block.php index a89facf7be9a5..cc95ee661f7c8 100644 --- a/src/wp-includes/blocks/block.php +++ b/src/wp-includes/blocks/block.php @@ -12,8 +12,9 @@ * * @global WP_Embed $wp_embed * - * @param array $attributes The block attributes. - * + * @param array $attributes The block attributes. + * @param string $content Block default content. + * @param WP_Block $block_instance Block instance. * @return string Rendered HTML of the referenced block. */ function render_block_core_block( $attributes, $content, $block_instance ) {