Socket
Book a DemoSign in
Socket

@wordpress/block-serialization-default-parser

Package Overview
Dependencies
Maintainers
25
Versions
222
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/block-serialization-default-parser - npm Package Compare versions

Comparing version
4.42.6
to
4.42.7
+6
-15
class-wp-block-parser.php

@@ -52,10 +52,2 @@ <?php

/**
* Empty associative array, here due to PHP quirks
*
* @since 4.4.0
* @var array empty associative array
*/
public $empty_attrs;
/**
* Parses a document and returns a list of block structures

@@ -73,7 +65,6 @@ *

public function parse( $document ) {
$this->document = $document;
$this->offset = 0;
$this->output = array();
$this->stack = array();
$this->empty_attrs = array();
$this->document = $document;
$this->offset = 0;
$this->output = array();
$this->stack = array();

@@ -292,3 +283,3 @@ while ( $this->proceed() ) {

? json_decode( $matches['attrs'][0], /* as-associative */ true )
: $this->empty_attrs;
: array();

@@ -324,3 +315,3 @@ /*

public function freeform( $inner_html ) {
return new WP_Block_Parser_Block( null, $this->empty_attrs, array(), $inner_html, array( $inner_html ) );
return new WP_Block_Parser_Block( null, array(), array(), $inner_html, array( $inner_html ) );
}

@@ -327,0 +318,0 @@

{
"name": "@wordpress/block-serialization-default-parser",
"version": "4.42.6",
"version": "4.42.7",
"description": "Block serialization specification parser for WordPress posts.",

@@ -36,3 +36,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "640c80ab0fb4e0e2bce87e33895939f257e674df"
"gitHead": "5551609efcf6d5b15ac55842bbbb310faea607f9"
}