-
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
Rename 'page content lock' to 'page content focus' #51280
Conversation
Size Change: +6 B (0%) Total Size: 1.39 MB
ℹ️ View Unchanged
|
Flaky tests detected in f6ff0a1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/5195166410
|
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 improvement @noisysocks! PageContentFocus
feels better to me than PageContentLock
, too, as it's clearer that it's talking about the post content having focus 👍
✅ Editing content in page content focus mode works as on trunk
✅ Switching between template editing mode and page content mode works as on trunk
✅ Renaming looks good and consistent
I agree it would've been good to somehow have a more generic word than page
or post
for flexibility, but I think the current naming is still good and clear, and I doubt it'll cause too much confusion.
So long as this makes it into Gutenberg 16.0 we don't need to do deprecations.
It looks like the 16.0 RC 1 has already been pushed, so once this PR lands, it'll need to be cherry picked to the release branch.
LGTM! ✨
Can you please include this in 16.0 @ndiego? 🙏 |
What?
Renames all the new APIs added in #50857 from 'page content lock' to 'page content focus'.
Why?
I don't want to use the word "lock" since this feature no longer has anything to do with
templateLock
(it used to).I did want to move away from "page" towards "post" as that matches the general convention in WordPress that everything is a "post", but, on second thought, I don't think we should do this because
@wordpress/edit-site
already has the stablesetPage
selector which I think we should align with.How?
Find and replace. So long as this makes it into Gutenberg 16.0 we don't need to do deprecations.
Testing Instructions
Same as in #50857.