PluginProbe
Gutenberg / 17.0.2
Gutenberg v17.0.2
24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 12.6.0 All 403 releases
← All changes | packages/block-serialization-default-parser/class-wp-block-parser-frame.php +3 -4 23.7.0 → 17.0.2 View file →
@@ -64,16 +64,15 @@
64 64 *
65 65 * @param WP_Block_Parser_Block $block Full or partial block.
66 66 * @param int $token_start Byte offset into document for start of parse token.
67 67 * @param int $token_length Byte length of entire parse token string.
68 - * @param int|null $prev_offset Optional. Byte offset into document for after parse token ends. Default null.
69 - * @param int|null $leading_html_start Optional. Byte offset into document where leading HTML before token starts.
70 - * Default null.
68 + * @param int $prev_offset Byte offset into document for after parse token ends.
69 + * @param int $leading_html_start Byte offset into document where leading HTML before token starts.
71 70 */
72 71 public function __construct( $block, $token_start, $token_length, $prev_offset = null, $leading_html_start = null ) {
73 72 $this->block = $block;
74 73 $this->token_start = $token_start;
75 74 $this->token_length = $token_length;
76 - $this->prev_offset = $prev_offset ?? $token_start + $token_length;
75 + $this->prev_offset = isset( $prev_offset ) ? $prev_offset : $token_start + $token_length;
77 76 $this->leading_html_start = $leading_html_start;
78 77 }
79 78 }