From 7c81b372563449d2799ff88aaa8f6b0de5a151a1 Mon Sep 17 00:00:00 2001 From: Mukesh Panchal Date: Fri, 11 Sep 2026 10:57:52 +0530 Subject: [PATCH] Docs: Fix a typo in the `WP_Block_Parser::add_inner_block()` DocBlock. Corrects "continuing form earlier output" to "continuing from earlier output" in the `$last_offset` parameter description. Co-Authored-By: Claude Opus 5 (1M context) Claude-Session: https://claude.ai/code/session_01MiJFwcvg18dxJBzYnGpc6B --- src/wp-includes/class-wp-block-parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/class-wp-block-parser.php b/src/wp-includes/class-wp-block-parser.php index 81cb7a8fa21f7..cffac0777de75 100644 --- a/src/wp-includes/class-wp-block-parser.php +++ b/src/wp-includes/class-wp-block-parser.php @@ -339,7 +339,7 @@ public function add_freeform( $length = null ) { * @param WP_Block_Parser_Block $block The block to add to the output. * @param int $token_start Byte offset into the document where the first token for the block starts. * @param int $token_length Byte length of entire block from start of opening token to end of closing token. - * @param int|null $last_offset Last byte offset into document if continuing form earlier output. + * @param int|null $last_offset Last byte offset into document if continuing from earlier output. */ public function add_inner_block( WP_Block_Parser_Block $block, $token_start, $token_length, $last_offset = null ) { $parent = $this->stack[ array_key_last( $this->stack ) ];