Image: False
values are not persisted in memory when used for lightbox configuration in theme.json
#54638
Labels
[Block] Image
Affects the Image Block
[Feature] Interactivity API
API to add frontend interactivity to blocks.
Global Styles
Anything related to the broader Global Styles efforts, including Styles Engine and theme.json
[Type] Bug
An existing feature does not function as intended
Description
If you set the following in your theme.json...
...rather than persisting as
false
in the in-memory representation of thetheme.json
, these values are filtered out.While functionally these values being
undefined
rather thanfalse
may result in the same behavior in most cases, this appears to be a bug and makes it difficult to achieve consistency in #54544 and #54635.Step-by-step reproduction instructions
rawSettings
around line 95.lightbox.allowEditing: true
from the default Gutenbergtheme.json
is visible in the logged statement as expected.theme.json
to include the following setting to overwrite the defaultallowEditing
value:rawSettings
no longer contains a value forlightbox
at all.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: