diff --git a/src/wp-includes/class-wp-block-parser.php b/src/wp-includes/class-wp-block-parser.php index c7e087ece8711..3b50c8e30cfe4 100644 --- a/src/wp-includes/class-wp-block-parser.php +++ b/src/wp-includes/class-wp-block-parser.php @@ -324,7 +324,7 @@ public function freeform( $inner_html ) { * @param null|int $length How many bytes of document text to output. */ public function add_freeform( $length = null ) { - $length = $length ? $length : strlen( $this->document ) - $this->offset; + $length = $length ?? strlen( $this->document ) - $this->offset; if ( 0 === $length ) { return; @@ -356,7 +356,7 @@ public function add_inner_block( WP_Block_Parser_Block $block, $token_start, $to } $parent->block->innerContent[] = null; - $parent->prev_offset = $last_offset ? $last_offset : $token_start + $token_length; + $parent->prev_offset = $last_offset ?? $token_start + $token_length; } /**