From 5693a62214b6c76d3dc5f3f69d8aad187748af79 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 20 Jun 2023 18:33:32 +1000 Subject: [PATCH] Require files for back-compat in WordPress releases. (#51670) --- .../class-wp-block-parser.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/block-serialization-default-parser/class-wp-block-parser.php b/packages/block-serialization-default-parser/class-wp-block-parser.php index 40a56fadfe1b27..61f287b21fc4e8 100644 --- a/packages/block-serialization-default-parser/class-wp-block-parser.php +++ b/packages/block-serialization-default-parser/class-wp-block-parser.php @@ -397,3 +397,17 @@ public function add_block_from_stack( $end_offset = null ) { $this->output[] = (array) $stack_top->block; } } + +/** + * WP_Block_Parser_Block class. + * + * Required for backward compatibility in WordPress Core. + */ +require_once __DIR__ . '/class-wp-block-parser-block.php'; + +/** + * WP_Block_Parser_Frame class. + * + * Required for backward compatibility in WordPress Core. + */ +require_once __DIR__ . '/class-wp-block-parser-frame.php';