-
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
Add __experimentalFeatures
default data for block-editor
package
#32702
Conversation
Size Change: +551 B (0%) Total Size: 1.04 MB
ℹ️ View Unchanged
|
// These are the same as the core theme.json. | ||
// Added them here as well as per this conversation | ||
// https://github.com/WordPress/gutenberg/pull/32482#discussion_r648956243 | ||
__experimentalFeatures: { |
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.
What happens when a user does:
<BlockEditorProvider settings={{ __experimentalFeatures: { color: { custom: false } } } } />
Does it merge with the defaults, should we do that?
I'm gardening my lingering PRs, and it's been a while since this one. Closing as it seems less pressing than other things I need to focus on. Can be reopened if necessary. |
See #32482 (comment)
Add a default value for
__experimentalFeatures
, so the@wordpress/block-editor
as a package doesn't require any other external data source to have default settings.How to test
global-styles.php
disable hooking the filter to thegutenberg_experimental_global_styles_settings
(comment lines 328 to 333)block-editor
store has defauls forsettings.__experimentalFeatures
.