Make WordPress Core

Changeset 54195

Timestamp:
09/17/2022 05:29:21 PM (23 months 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 .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
    168168 *
    169169 * @since 5.0.0
     170
    170171 */
    171172class WP_Block_Parser {
     
    192193     *
    193194     * @since 5.0.0
    194      * @var array[]
     195     * @var []
    195196     */
    196197    public $output;
     
    207208     * Empty associative array, here due to PHP quirks
    208209     *
    209      * @since 5.0.0
     210     * @since .0
    210211     * @var array empty associative array
    211212     */
     
    222223     *
    223224     * @param string $document Input document being parsed.
    224      * @return array[]
     225     * @return []
    225226     */
    226227    function parse( $document ) {
     
    395396     * @internal
    396397     * @since 5.0.0
     398
    397399     * @return array
    398400     */
     
    467469     *
    468470     * @internal
    469      * @since 5.0.0
     471     * @since .0
    470472     *
    471473     * @param string $innerHTML HTML content of block.
Note: See TracChangeset for help on using the changeset viewer.