mirror of
https://github.com/WordPress/WordPress.git
synced 2026-06-19 07:37:07 +00:00
Build: Restore block parser in Core.
The work in [61438] for Core-64393 removed the block parser classes from Core, which caused numerous scripts to fail because they were missing. Conditional checks were added in [61492] which left WordPress in an inoperable state. This patch restores the block parser in Core, in preparation for work to remove it from Gutenberg (in a separate patch). Ironically, the files were removed because the new build was copying them over from Gutenberg and the intent was to avoid having two sources of truth, but this was previously the existing mechanism, so having done nothing to the parser files would have left the status quo. This patch removes the problems originally created by removing the files. They will not be copied from Gutenberg any more and the only source of truth will be Core. Until removed from Gutenberg, because of the build changes, any changes made on the Gutenberg side will be lost unless manually copied over. Developed in: https://github.com/WordPress/wordpress-develop/pull/10761 Discussed in: https://core.trac.wordpress.org/ticket/64521 Follow-up to [61438], [61492]. Props dmsnell, mcsf, mukesh27, youknowriad. Fixes #64521. Built from https://develop.svn.wordpress.org/trunk@61504 git-svn-id: http://core.svn.wordpress.org/trunk@60815 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
+3
-9
@@ -377,15 +377,9 @@ require ABSPATH . WPINC . '/class-wp-block-type-registry.php';
|
||||
require ABSPATH . WPINC . '/class-wp-block.php';
|
||||
require ABSPATH . WPINC . '/class-wp-block-list.php';
|
||||
require ABSPATH . WPINC . '/class-wp-block-metadata-registry.php';
|
||||
if ( file_exists( ABSPATH . WPINC . '/class-wp-block-parser-block.php' ) ) {
|
||||
require ABSPATH . WPINC . '/class-wp-block-parser-block.php';
|
||||
}
|
||||
if ( file_exists( ABSPATH . WPINC . '/class-wp-block-parser-frame.php' ) ) {
|
||||
require ABSPATH . WPINC . '/class-wp-block-parser-frame.php';
|
||||
}
|
||||
if ( file_exists( ABSPATH . WPINC . '/class-wp-block-parser.php' ) ) {
|
||||
require ABSPATH . WPINC . '/class-wp-block-parser.php';
|
||||
}
|
||||
require ABSPATH . WPINC . '/class-wp-block-parser-block.php';
|
||||
require ABSPATH . WPINC . '/class-wp-block-parser-frame.php';
|
||||
require ABSPATH . WPINC . '/class-wp-block-parser.php';
|
||||
require ABSPATH . WPINC . '/class-wp-classic-to-block-menu-converter.php';
|
||||
require ABSPATH . WPINC . '/class-wp-navigation-fallback.php';
|
||||
require ABSPATH . WPINC . '/block-bindings.php';
|
||||
|
||||
Reference in New Issue
Block a user