Skip to content

Commit

Permalink
Docs: Revert the documentation change to WP_Block_Parser::parse() m…
Browse files Browse the repository at this point in the history
…ade 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
  • Loading branch information
johnbillion committed May 2, 2024
1 parent f6a6e68 commit 65b4b6a
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions src/wp-includes/class-wp-block-parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class WP_Block_Parser {
public $stack;

/**
* Parses a document and returns a list of block structures.
* Parses a document and returns a list of block structures
*
* When encountering an invalid parse will return a best-effort
* parse. In contrast to the specification parser this does not
Expand All @@ -58,21 +58,7 @@ class WP_Block_Parser {
* @since 5.0.0
*
* @param string $document Input document being parsed.
* @return array[] {
* Array of block structures.
*
* @type array ...$0 {
* A representative array of a single parsed block object. See WP_Block_Parser_Block.
*
* @type string $blockName Name of block.
* @type array $attrs Attributes from block comment delimiters.
* @type array[] $innerBlocks List of inner blocks. An array of arrays that
* have the same structure as this one.
* @type string $innerHTML HTML from inside block comment delimiters.
* @type array $innerContent List of string fragments and null markers where
* inner blocks were found.
* }
* }
* @return array[]
*/
public function parse( $document ) {
$this->document = $document;
Expand Down

0 comments on commit 65b4b6a

Please sign in to comment.