Skip to content

Commit

Permalink
Correct documentation for WP_Block_Parser_Frame class (#62598)
Browse files Browse the repository at this point in the history
* Correct documentation for WP_Block_Parser_Frame class

* Add optional descriptions prefix

* Add backport changelog file
  • Loading branch information
dilipbheda committed Jun 19, 2024
1 parent 9e53779 commit 2f5c7c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions backport-changelog/6.6/6841.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
https://github.com/WordPress/wordpress-develop/pull/6841

* https://github.com/WordPress/gutenberg/pull/62598
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,9 @@ class WP_Block_Parser_Frame {
* @param WP_Block_Parser_Block $block Full or partial block.
* @param int $token_start Byte offset into document for start of parse token.
* @param int $token_length Byte length of entire parse token string.
* @param int $prev_offset Byte offset into document for after parse token ends.
* @param int $leading_html_start Byte offset into document where leading HTML before token starts.
* @param int|null $prev_offset Optional. Byte offset into document for after parse token ends. Default null.
* @param int|null $leading_html_start Optional. Byte offset into document where leading HTML before token starts.
* Default null.
*/
public function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) {
$this->block = $block;
Expand Down

0 comments on commit 2f5c7c0

Please sign in to comment.