Skip to content

Commit 65b4b6a

Browse files
committed
Docs: Revert the documentation change to WP_Block_Parser::parse() made in [58084].
This file needs to be synced from the Gutenberg repository. See #60699 git-svn-id: https://develop.svn.wordpress.org/trunk@58085 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f6a6e68 commit 65b4b6a

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

src/wp-includes/class-wp-block-parser.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class WP_Block_Parser {
4949
public $stack;
5050

5151
/**
52-
* Parses a document and returns a list of block structures.
52+
* Parses a document and returns a list of block structures
5353
*
5454
* When encountering an invalid parse will return a best-effort
5555
* parse. In contrast to the specification parser this does not
@@ -58,21 +58,7 @@ class WP_Block_Parser {
5858
* @since 5.0.0
5959
*
6060
* @param string $document Input document being parsed.
61-
* @return array[] {
62-
* Array of block structures.
63-
*
64-
* @type array ...$0 {
65-
* A representative array of a single parsed block object. See WP_Block_Parser_Block.
66-
*
67-
* @type string $blockName Name of block.
68-
* @type array $attrs Attributes from block comment delimiters.
69-
* @type array[] $innerBlocks List of inner blocks. An array of arrays that
70-
* have the same structure as this one.
71-
* @type string $innerHTML HTML from inside block comment delimiters.
72-
* @type array $innerContent List of string fragments and null markers where
73-
* inner blocks were found.
74-
* }
75-
* }
61+
* @return array[]
7662
*/
7763
public function parse( $document ) {
7864
$this->document = $document;

0 commit comments

Comments
 (0)