-
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
Group: Fix the 'templateLock' attribute type in deprecations #49205
Conversation
@@ -50,7 +50,8 @@ const deprecated = [ | |||
default: 'div', | |||
}, | |||
templateLock: { | |||
type: 'string', | |||
type: [ 'string', 'boolean' ], | |||
enum: [ 'all', 'insert', false ], |
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've omitted contentOnly
since it was introduced after this deprecation.
Size Change: +6 B (0%) Total Size: 1.34 MB
ℹ️ View Unchanged
|
Flaky tests detected in 8cf99d1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4468704939
|
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.
Looks good, thanks!
What?
Fixes #49159.
PR updates the
templateLock
type in the latest block deprecation to avoid losing the attribute when it's set tofalse
.Testing Instructions
templateLock
boolean value is retained.