-
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
Image: Simplify the method for getting block editor settings #47903
Conversation
Size Change: +3 B (0%) Total Size: 1.32 MB
ℹ️ View Unchanged
|
Flaky tests detected in 3174d56. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4131902330
|
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.
LGTM, thanks @Mamaduka 🚀
What?
It's similar to #47736.
PR simplifies getting block editor settings in the Image block. The block only needs to pick a few values from the settings object, so there's no need for object manipulations.
How?
Directly map settings object values to the returned object.
Testing Instructions
Screenshots or screencast