From 83f3fdd178d97e578d2c6ab0fd5246cc2ba39002 Mon Sep 17 00:00:00 2001 From: dilipbheda <bhedadilip8462@gmail.com> Date: Sat, 15 Jun 2024 20:19:52 +0530 Subject: [PATCH 1/3] Correct documentation for WP_Block_Parser_Frame class --- .../class-wp-block-parser-frame.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/block-serialization-default-parser/class-wp-block-parser-frame.php b/packages/block-serialization-default-parser/class-wp-block-parser-frame.php index 15938dea389aad..393a2a315cdfef 100644 --- a/packages/block-serialization-default-parser/class-wp-block-parser-frame.php +++ b/packages/block-serialization-default-parser/class-wp-block-parser-frame.php @@ -65,8 +65,8 @@ 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 Byte offset into document for after parse token ends. Default null. + * @param int|null $leading_html_start 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; From 740e8ec08c4b7b639d9754faa219b846d4d60140 Mon Sep 17 00:00:00 2001 From: dilipbheda <bhedadilip8462@gmail.com> Date: Sun, 16 Jun 2024 11:05:48 +0530 Subject: [PATCH 2/3] Add optional descriptions prefix --- .../class-wp-block-parser-frame.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/block-serialization-default-parser/class-wp-block-parser-frame.php b/packages/block-serialization-default-parser/class-wp-block-parser-frame.php index 393a2a315cdfef..6ab5dd3087dfb6 100644 --- a/packages/block-serialization-default-parser/class-wp-block-parser-frame.php +++ b/packages/block-serialization-default-parser/class-wp-block-parser-frame.php @@ -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|null $prev_offset Byte offset into document for after parse token ends. Default null. - * @param int|null $leading_html_start Byte offset into document where leading HTML before token starts. Default null. + * @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; From 3d6b6e0f4196009dc11b657987b8dcbd41db19f6 Mon Sep 17 00:00:00 2001 From: dilipbheda <bhedadilip8462@gmail.com> Date: Mon, 17 Jun 2024 18:02:25 +0530 Subject: [PATCH 3/3] Add backport changelog file --- backport-changelog/6.6/6841.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 backport-changelog/6.6/6841.md diff --git a/backport-changelog/6.6/6841.md b/backport-changelog/6.6/6841.md new file mode 100644 index 00000000000000..36e715c48f52e0 --- /dev/null +++ b/backport-changelog/6.6/6841.md @@ -0,0 +1,3 @@ +https://github.com/WordPress/wordpress-develop/pull/6841 + +* https://github.com/WordPress/gutenberg/pull/62598