@wordpress/block-serialization-default-parser
Advanced tools
@@ -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 @@ |
+2
-2
| { | ||
| "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" | ||
| } |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
160959
-0.13%