Make WordPress Core

Ticket #56581: 56581-since-2.patch

File 56581-since-2.patch, 1.6 KB (added by Chouby, 2 years 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..95879d1a27 100644
    class WP_Block_Parser_Block { 
    6262         *   'innerContent' => array( 'Before', null, 'Inner', null, 'After' ),
    6363         * )
    6464         *
    65          * @since 4.2.0
     65         * @since 5.1.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 blocks.
     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.1.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
     398         * @since 5.1.0 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
    399399         * @return array
    400400         */
    401401        function next_token() {
    class WP_Block_Parser { 
    468468         * Returns a new block object for freeform HTML
    469469         *
    470470         * @internal
    471          * @since 3.9.0
     471         * @since 5.0.0
    472472         *
    473473         * @param string $innerHTML HTML content of block.
    474474         * @return WP_Block_Parser_Block freeform block object.