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.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.
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_htmlcapability (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
add_action( 'init', 'kses_init_filters' );Screenshots, screen recording, code snippet
Screen.Recording.2025-11-11.at.12.40.17.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.