Make WordPress Core

Ticket #56581: 56581-since.patch

File 56581-since.patch, 1.5 KB (added by Chouby, 18 months ago)
  • src/wp-includes/class-wp-block-parser.php

    diff --git src/wp-includes/class-wp-block-parser.php src/wp-includes/class-wp-block-parser.php
    index 27c85cfcd2..90e8f2eaaa 100644
    class WP_Block_Parser_Block { 
    6262         *   'innerContent' => array( 'Before', null, 'Inner', null, 'After' ),
    6363         * )
    6464         *
    65          * @since 4.2.0
     65         * @since 5.0.0
    6666         * @var array
    6767         */
    6868        public $innerContent;
    class WP_Block_Parser_Frame { 
    164164/**
    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 block objects.
     168 * Returns arrays not objects, all attributes are arrays.
    168169 *
    169170 * @since 5.0.0
    170  * @since 4.0.0 returns arrays not objects, all attributes are arrays
    171171 */
    172172class WP_Block_Parser {
    173173        /**
    class WP_Block_Parser { 
    207207        /**
    208208         * Empty associative array, here due to PHP quirks
    209209         *
    210          * @since 4.4.0
     210         * @since 5.0.0
    211211         * @var array empty associative array
    212212         */
    213213        public $empty_attrs;
    class WP_Block_Parser { 
    395395         *
    396396         * @internal
    397397         * @since 5.0.0
    398          * @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
    399398         * @return array
    400399         */
    401400        function next_token() {
    class WP_Block_Parser { 
    468467         * Returns a new block object for freeform HTML
    469468         *
    470469         * @internal
    471          * @since 3.9.0
     470         * @since 5.0.0
    472471         *
    473472         * @param string $innerHTML HTML content of block.
    474473         * @return WP_Block_Parser_Block freeform block object.