Make WordPress Core

Changeset 54195


Ignore:
Timestamp:
09/17/2022 05:29:21 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Revert the WP_Block_Parser documentation changes now.

This commit reverts [54193] and [54194].

It appears that these changes should first be made upstream in the Gutenberg respository and then backported to core, as the tests fail otherwise.

See #56581.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-block-parser.php

    r54194 r54195  
    6363     * )
    6464     *
    65      * @since 5.0.0
     65     * @since 4.2.0
    6666     * @var array
    6767     */
     
    165165 * Class WP_Block_Parser
    166166 *
    167  * Parses a document and constructs a list of parsed blocks.
     167 * Parses a document and constructs a list of parsed block objects
    168168 *
    169169 * @since 5.0.0
     170 * @since 4.0.0 returns arrays not objects, all attributes are arrays
    170171 */
    171172class WP_Block_Parser {
     
    192193     *
    193194     * @since 5.0.0
    194      * @var array[]
     195     * @var WP_Block_Parser_Block[]
    195196     */
    196197    public $output;
     
    207208     * Empty associative array, here due to PHP quirks
    208209     *
    209      * @since 5.0.0
     210     * @since 4.4.0
    210211     * @var array empty associative array
    211212     */
     
    222223     *
    223224     * @param string $document Input document being parsed.
    224      * @return array[]
     225     * @return WP_Block_Parser_Block[]
    225226     */
    226227    function parse( $document ) {
     
    395396     * @internal
    396397     * @since 5.0.0
     398     * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
    397399     * @return array
    398400     */
     
    467469     *
    468470     * @internal
    469      * @since 5.0.0
     471     * @since 3.9.0
    470472     *
    471473     * @param string $innerHTML HTML content of block.
Note: See TracChangeset for help on using the changeset viewer.