-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Pattern content only experiment: Make template parts section blocks #71627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Size Change: +39 B (0%) Total Size: 1.94 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in c48d826. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/17668801848
|
jeryj
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice isolated change 👍🏻 This is working well for me! I followed all testing steps and got the expected outcome.
|
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 If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
What?
Fixes #71571
Contributes to #71517
Adds the contentOnly treatment to template parts by default when the experiment is active.
Also adds
support: contentRoleto the Site Tagline block to make that editable in contentOnly mode. (see: Audit blocks for writing and contentOnly modes)The one drawback of changing template parts this is that a user can no longer switch between different patterns for the template part. This feature was previously available in the block inspector. This might need to be considered, but I don't think it's a blocker for this PR. I think the tab implementation described in Content Only Pattern experiment: Split inspector controls into tabs for patterns is required before this can be brought back.
Also note that the navigation block is not supported yet, but that should come later!
Testing Instructions
First enable the experiment in Gutenberg > Experiments from wp admin:

Screenshots or screencast
Kapture.2025-09-12.at.16.12.45.mp4