Skip to content

Conversation

@dmsnell
Copy link
Member

@dmsnell dmsnell commented Jan 20, 2026

Quick summary

  • Core no longer receives updates to the block parser from Gutenberg.
  • Gutenberg will remove the PHP block parser code in the default parser.
  • Nothing is supposed to change apart from Core working where it was previously broken due to the removed parser files.

Summary

Trac ticket: Core-64521
See also: Core-64393

The work in #10638 [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 #10718 [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: #10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].
Props dmsnell, mcsf, mukesh27, youknowriad.

dmsnell added a commit to dmsnell/wordpress-develop that referenced this pull request Jan 20, 2026
Trac ticket: Core-64521

The work in WordPress#10638 [[61438]](https://core.trac.wordpress.org/changeset/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 WordPress#10718
[[61492]](https://core.trac.wordpress.org/changeset/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 f.

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: WordPress#10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].
Props dmsnell, mcsf, mukesh27, youknowriad.

Co-authored-by: Miguel Fonseca <mcsf@git.wordpress.org>
Co-authored-by: Mukesh Panchal <mukesh27@git.wordpress.org>
Co-authored-by: Riad Benguella <youknowriad@git.wordpress.org>
Github-PR: 10761
Github-PR-URL: WordPress#10761
Trac-Ticket: 64521
Trac-Ticket-URL: https://core.trac.wordpress.org/ticket/64521
Branch-Name: build/restore-block-parser
@dmsnell dmsnell force-pushed the build/restore-block-parser branch from a6f1e7d to bcb21f0 Compare January 20, 2026 00:06
dmsnell added a commit to dmsnell/wordpress-develop that referenced this pull request Jan 20, 2026
Trac ticket: Core-64521

The work in WordPress#10638 [[61438]](https://core.trac.wordpress.org/changeset/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 WordPress#10718
[[61492]](https://core.trac.wordpress.org/changeset/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 f.

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: WordPress#10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].
Props dmsnell, mcsf, mukesh27, youknowriad.

Co-authored-by: Miguel Fonseca <mcsf@git.wordpress.org>
Co-authored-by: Mukesh Panchal <mukesh27@git.wordpress.org>
Co-authored-by: Riad Benguella <youknowriad@git.wordpress.org>
Github-PR: 10761
Github-PR-URL: WordPress#10761
Trac-Ticket: 64521
Trac-Ticket-URL: https://core.trac.wordpress.org/ticket/64521
Branch-Name: build/restore-block-parser
@dmsnell dmsnell force-pushed the build/restore-block-parser branch from bcb21f0 to 9364afc Compare January 20, 2026 00:06
@dmsnell dmsnell marked this pull request as ready for review January 20, 2026 00:07
@github-actions
Copy link

github-actions bot commented Jan 20, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props dmsnell, youknowriad.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@dmsnell dmsnell force-pushed the build/restore-block-parser branch from 9364afc to 191d64a Compare January 20, 2026 00:07
dmsnell added a commit to dmsnell/wordpress-develop that referenced this pull request Jan 20, 2026
Trac ticket: Core-64521

The work in WordPress#10638 [[61438]](https://core.trac.wordpress.org/changeset/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 WordPress#10718
[[61492]](https://core.trac.wordpress.org/changeset/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: WordPress#10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].
Props dmsnell, mcsf, mukesh27, youknowriad.

Co-authored-by: Miguel Fonseca <mcsf@git.wordpress.org>
Co-authored-by: Mukesh Panchal <mukesh27@git.wordpress.org>
Co-authored-by: Riad Benguella <youknowriad@git.wordpress.org>
Github-PR: 10761
Github-PR-URL: WordPress#10761
Trac-Ticket: 64521
Trac-Ticket-URL: https://core.trac.wordpress.org/ticket/64521
Branch-Name: build/restore-block-parser
@github-actions
Copy link

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • The Plugin and Theme Directories cannot be accessed within Playground.
  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@youknowriad
Copy link
Contributor

This looks good to me :)

Trac ticket: Core-64521

The work in WordPress#10638 [[61438]](https://core.trac.wordpress.org/changeset/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 WordPress#10718
[[61492]](https://core.trac.wordpress.org/changeset/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: WordPress#10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].
Props dmsnell, mcsf, mukesh27, youknowriad.

Co-authored-by: Miguel Fonseca <mcsf@git.wordpress.org>
Co-authored-by: Mukesh Panchal <mukesh27@git.wordpress.org>
Co-authored-by: Riad Benguella <youknowriad@git.wordpress.org>
Github-PR: 10761
Github-PR-URL: WordPress#10761
Trac-Ticket: 64521
Trac-Ticket-URL: https://core.trac.wordpress.org/ticket/64521
Branch-Name: build/restore-block-parser
@dmsnell dmsnell force-pushed the build/restore-block-parser branch from 191d64a to 0d34362 Compare January 20, 2026 22:39
pento pushed a commit that referenced this pull request Jan 20, 2026
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: #10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].

Props dmsnell, mcsf, mukesh27, youknowriad.
Fixes #64521.


git-svn-id: https://develop.svn.wordpress.org/trunk@61504 602fd350-edb4-49c9-b593-d223f7449a82
@github-actions
Copy link

A commit was made that fixes the Trac ticket referenced in the description of this pull request.

SVN changeset: 61504
GitHub commit: 6ba48db

This PR will be closed, but please confirm the accuracy of this and reopen if there is more work to be done.

@github-actions github-actions bot closed this Jan 20, 2026
markjaquith pushed a commit to markjaquith/WordPress that referenced this pull request Jan 20, 2026
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: WordPress/wordpress-develop#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
dmsnell added a commit to dmsnell/wordpress-develop that referenced this pull request Jan 20, 2026
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: WordPress#10761
Discussed in: https://core.trac.wordpress.org/ticket/64521

Follow-up to [61438], [61492].

Props dmsnell, mcsf, mukesh27, youknowriad.
Fixes #64521.


git-svn-id: https://develop.svn.wordpress.org/trunk@61504 602fd350-edb4-49c9-b593-d223f7449a82
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants