mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Block Editor: Update @wordpress package dependencies.
Updates the following packages: block-library, block-serialization-default-parser, block-serialization-spec-parser, blocks, edit-post, editor, format-library. Merges [43955] to trunk. Props youknowriad. Fixes #45145. git-svn-id: https://develop.svn.wordpress.org/trunk@44281 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -364,6 +364,7 @@ class WP_Block_Parser {
|
||||
*
|
||||
* @internal
|
||||
* @since 3.8.0
|
||||
* @since 4.6.1 fixed a bug in attribute parsing which caused catastrophic backtracking on invalid block comments
|
||||
* @return array
|
||||
*/
|
||||
function next_token() {
|
||||
@@ -378,13 +379,18 @@ class WP_Block_Parser {
|
||||
* match back in PHP to see which one it was.
|
||||
*/
|
||||
$has_match = preg_match(
|
||||
'/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:[^}]+|}+(?=})|(?!}\s+-->).)*?}\s+)?(?<void>\/)?-->/s',
|
||||
'/<!--\s+(?<closer>\/)?wp:(?<namespace>[a-z][a-z0-9_-]*\/)?(?<name>[a-z][a-z0-9_-]*)\s+(?<attrs>{(?:(?:[^}]+|}+(?=})|(?!}\s+\/?-->).)*+)?}\s+)?(?<void>\/)?-->/s',
|
||||
$this->document,
|
||||
$matches,
|
||||
PREG_OFFSET_CAPTURE,
|
||||
$this->offset
|
||||
);
|
||||
|
||||
// if we get here we probably have catastrophic backtracking or out-of-memory in the PCRE
|
||||
if ( false === $has_match ) {
|
||||
return array( 'no-more-tokens', null, null, null, null );
|
||||
}
|
||||
|
||||
// we have no more tokens
|
||||
if ( 0 === $has_match ) {
|
||||
return array( 'no-more-tokens', null, null, null, null );
|
||||
|
||||
@@ -212,9 +212,9 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
'annotations' => '1.0.3',
|
||||
'autop' => '2.0.2',
|
||||
'blob' => '2.1.0',
|
||||
'block-library' => '2.2.8',
|
||||
'block-serialization-default-parser' => '2.0.0',
|
||||
'blocks' => '6.0.2',
|
||||
'block-library' => '2.2.9',
|
||||
'block-serialization-default-parser' => '2.0.1',
|
||||
'blocks' => '6.0.3',
|
||||
'components' => '7.0.3',
|
||||
'compose' => '3.0.0',
|
||||
'core-data' => '2.0.14',
|
||||
@@ -223,11 +223,11 @@ function wp_default_packages_scripts( &$scripts ) {
|
||||
'deprecated' => '2.0.3',
|
||||
'dom' => '2.0.7',
|
||||
'dom-ready' => '2.0.2',
|
||||
'edit-post' => '3.1.3',
|
||||
'editor' => '9.0.3',
|
||||
'edit-post' => '3.1.4',
|
||||
'editor' => '9.0.4',
|
||||
'element' => '2.1.8',
|
||||
'escape-html' => '1.0.1',
|
||||
'format-library' => '1.2.6',
|
||||
'format-library' => '1.2.7',
|
||||
'hooks' => '2.0.3',
|
||||
'html-entities' => '2.0.3',
|
||||
'i18n' => '3.1.0',
|
||||
|
||||
Reference in New Issue
Block a user