- Notifications
You must be signed in to change notification settings - Fork 4.6k
Remove broken content only settings menu items feature #72470
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: -698 B (-0.03%) Total Size: 2.17 MB
ℹ️ View Unchanged
|
| Flaky tests detected in 085088a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/18645116813
|
andrewserong 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.
I like the idea of the removal! Looks like there's just some CSS here that could be removed, too?
| .editor-content-only-settings-menu__description { | |
| padding: $grid-unit; | |
| min-width: 235px; | |
| } |
| 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. |
Good catch, now removed! |
andrewserong 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.
Looking good, each of the cases in the PR description are testing well (no block settings unexpectedly showing), and in regular usage the block settings menu shows as it should.
LGTM! 🚀
What?
Removes the block settings menu items that were previously introduced in #61127.
Why?
Happy to be told otherwise, but from my testing in trunk, these menu items are never shown. The blocks that might have had these options shown no longer have a block settings menu at all, so there's no way for the option to show.
The one time I was able to trigger the option was in my WIP PR #72044, where it looked very buggy, and didn't behave as expected.
Given the feature hasn't been working for some time (though I'm not sure how long), and no one has complained, I think it's probably best to remove it.
How?
Delete the code
Testing Instructions
There's not really anything to test as it didn't work anyway, but if you want to test that it still doesn't work after the feature is removed here's some steps:
Templates
Synced patterns
Content Only Template Lock
"templateLock":"contentOnly"attribute to the group