-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Replace the gutenberg_
prefix with wp_
in image block
#54678
Conversation
I imagine it's possibly the theme JSON class changes rather than |
Size Change: 0 B Total Size: 1.62 MB ℹ️ View Unchanged
|
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.
Thanks for fixing this up!
✅ Lightbox still works at the individual block level via toggling "Expand on click"
✅ Switching it on via theme.json
for all image blocks works as before
LGTM! ✨
Thanks for reviewing @andrewserong !
Oh that's probably it, yes! I just rechecked the function and barring some core-specific logic for caching when in theme dev mode, it's the same on both sides. |
Flaky tests detected in 9cdbce8. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6256954192
|
* Replace the `gutenberg_` prefix with `wp_` in image block * Remove gutenberg namespace from translation functions.
I just cherry-picked this PR to the release/16.7 branch to get it included in the next release: d80d932 |
What?
Removes the
gutenberg_
namespace erroneously introduced toblock-library
in #54509.In order for the lightbox to still work when enabled from theme.json, I had to add the function to the webpack list of functions to be renamed when built. Does this mean there are changes in
gutenberg_get_global_settings
that need to be updated in core?Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast