Make WordPress Core

Changeset 61504 for trunk/.gitignore


Ignore:
Timestamp:
01/20/2026 11:01:11 PM (3 months ago)
Author:
dmsnell
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/.gitignore

    r61492 r61504  
    3939!/src/wp-includes/blocks/index.php
    4040/src/wp-includes/build
    41 /src/wp-includes/class-wp-block-parser.php
    42 /src/wp-includes/class-wp-block-parser-block.php
    43 /src/wp-includes/class-wp-block-parser-frame.php
    4441/src/wp-includes/theme.json
    4542/packagehash.txt
Note: See TracChangeset for help on using the changeset viewer.