Make WordPress Core


Ignore:
Timestamp:
10/16/2023 07:14:55 PM (15 months ago)
Author:
karmatosed
Message:

Update editor related npm packages for 6.4 RC1.

The npm packages needed a second part to the update for 6.4 RC1.

Props isabel_brison, andrewserong, jsnajdr, wildworks, joen, mciampini, tyxla, youknowriad, ramonopoly, spacedmonkey, dmsnell, mikachan, kishanjasani, czapla, siobhyb, darerodz, luisherranz

See #59411.

File:
1 edited

Legend:

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

    r56710 r56945  
    5050
    5151    /**
    52      * Empty associative array, here due to PHP quirks
    53      *
    54      * @since 4.4.0
    55      * @var array empty associative array
    56      */
    57     public $empty_attrs;
    58 
    59     /**
    6052     * Parses a document and returns a list of block structures
    6153     *
     
    7062     */
    7163    public function parse( $document ) {
    72         $this->document    = $document;
    73         $this->offset      = 0;
    74         $this->output      = array();
    75         $this->stack       = array();
    76         $this->empty_attrs = array();
     64        $this->document = $document;
     65        $this->offset   = 0;
     66        $this->output   = array();
     67        $this->stack    = array();
    7768
    7869        while ( $this->proceed() ) {
     
    288279        $attrs = $has_attrs
    289280            ? json_decode( $matches['attrs'][0], /* as-associative */ true )
    290             : $this->empty_attrs;
     281            : array();
    291282
    292283        /*
     
    319310     */
    320311    public function freeform( $inner_html ) {
    321         return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $inner_html, array( $inner_html ) );
     312        return new WP_Block_Parser_Block( null, array(), array(), $inner_html, array( $inner_html ) );
    322313    }
    323314
Note: See TracChangeset for help on using the changeset viewer.