Make WordPress Core

Changeset 54193


Ignore:
Timestamp:
09/17/2022 04:47:17 PM (18 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @since tags for some block parser properties and methods.

This affects:

  • WP_Block_Parser::$empty_attrs
  • WP_Block_Parser::next_token()
  • WP_Block_Parser::freeform()
  • WP_Block_Parser_Block::$innerContent

The @since tags referred to early Gutenberg versions instead of WordPress core. These properties and methods were introduced in WordPress 5.0, so 5.0.0 is the correct version.

Some of the other @since tags are removed, as they are related to early Gutenberg development before it was merged into WordPress core, and are not relevant for core.

Follow-up to [43751], [43884], [43955] for the 5.0 branch, [44116], [44261], [44281] for trunk.

Props Chouby.
See #56581.

File:
1 edited

Legend:

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

    r50137 r54193  
    6363     * )
    6464     *
    65      * @since 4.2.0
     65     * @since 5.0.0
    6666     * @var array
    6767     */
     
    165165 * Class WP_Block_Parser
    166166 *
    167  * Parses a document and constructs a list of parsed block objects
     167 * Parses a document and constructs a list of parsed blocks.
    168168 *
    169169 * @since 5.0.0
    170  * @since 4.0.0 returns arrays not objects, all attributes are arrays
    171170 */
    172171class WP_Block_Parser {
     
    208207     * Empty associative array, here due to PHP quirks
    209208     *
    210      * @since 4.4.0
     209     * @since 5.0.0
    211210     * @var array empty associative array
    212211     */
     
    396395     * @internal
    397396     * @since 5.0.0
    398      * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
    399397     * @return array
    400398     */
     
    469467     *
    470468     * @internal
    471      * @since 3.9.0
     469     * @since 5.0.0
    472470     *
    473471     * @param string $innerHTML HTML content of block.
Note: See TracChangeset for help on using the changeset viewer.