-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")Related to the overarching Site Editor (formerly "full site editing")[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
The KSES filters don't allow to change the lightbox settings of the block image via the Global Styles sidebar in the site editor.
These filters are only registered when a user doesn't have the unfiltered_html capability (which is the case for multisite regular admins).
When these filters are active, any change to the lightbox settings is reverted back to its previous value.
Step-by-step reproduction instructions
- Enable the KSES filters with
add_action( 'init', 'kses_init_filters' ); - Go to Appearance > Editor
- Open the Styles sidebar
- Select "Blocks"
- Select "Image"
- Change the "Enlarge on click" options
- Save the changes
⚠️ Note how the changes are reverted
Screenshots, screen recording, code snippet
Screen.Recording.2025-11-11.at.12.40.17.mov
Environment info
- WordPress: 6.8.3
- Gutenberg: 22.0.0
- Theme: Twenty Twenty-Four 1.3
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Copilot
Metadata
Metadata
Assignees
Labels
Global StylesAnything related to the broader Global Styles efforts, including Styles Engine and theme.jsonAnything related to the broader Global Styles efforts, including Styles Engine and theme.json[Feature] Site EditorRelated to the overarching Site Editor (formerly "full site editing")Related to the overarching Site Editor (formerly "full site editing")[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended