diff --git a/src/wp-includes/class-wp-block-parser.php b/src/wp-includes/class-wp-block-parser.php index 81cb7a8fa21f7..c7e087ece8711 100644 --- a/src/wp-includes/class-wp-block-parser.php +++ b/src/wp-includes/class-wp-block-parser.php @@ -85,6 +85,7 @@ public function parse( $document ) { * * @internal * @since 5.0.0 + * * @return bool */ public function proceed() { @@ -231,6 +232,7 @@ public function proceed() { * @internal * @since 5.0.0 * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments + * * @return array */ public function next_token() { @@ -318,6 +320,7 @@ public function freeform( $inner_html ) { * * @internal * @since 5.0.0 + * * @param null|int $length How many bytes of document text to output. */ public function add_freeform( $length = null ) { @@ -336,6 +339,7 @@ public function add_freeform( $length = null ) { * * @internal * @since 5.0.0 + * * @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. @@ -360,6 +364,7 @@ public function add_inner_block( WP_Block_Parser_Block $block, $token_start, $to * * @internal * @since 5.0.0 + * * @param int|null $end_offset byte offset into document for where we should stop sending text output as HTML. */ public function add_block_from_stack( $end_offset = null ) {