-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[6.7] Editor: Remove edit template menu item from block settings menu in blocks outside template. (#65560) #66339
Conversation
…ocks outside template. (#65560)
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. |
Size Change: +10 B (0%) Total Size: 1.77 MB
ℹ️ View Unchanged
|
@@ -48,10 +48,14 @@ function ContentOnlySettingsMenuItems( { clientId, onClose } ) { | |||
} else { | |||
const { getCurrentTemplateId } = select( editorStore ); | |||
const templateId = getCurrentTemplateId(); | |||
const { getContentLockingParent } = unlock( | |||
const { getContentLockingParent, getRenderingMode } = unlock( |
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.
getRenderingMode is in the editor store.
Flaky tests detected in 2effcf0. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/11464559418
|
Was this a backport of #65560? I'll remove the backport label on the original PR then 👍. |
Yes, thanks! |
What?
Originally #65560.
I had to manually rebase. The problem is that there's a
getContentLockingParent
condition that is in the6.7
, but not intrunk
. And there's agetBlockParents
condition that is intrunk
, but not in6.7
.I decided to only pick out the extra mode condition.
Why?
It's needed for #66311.
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast