-
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
Unable to change the block spacing within Global Styles when KSES is active #45520
Comments
Looks like this issue is also preventing the dimensions from being changed: Screen.Recording.2022-11-03.at.16.15.02.mov |
I investigated this further, and these are my findings. This is not an issue caused by the lack of some HTML attributes allowed by KSES. The problem is that the Looking deeper, the function is considering the That happens because And the underlying issue seems to be that the list of
I see the |
Thanks for digging @mmtr, that appears to get to the root of the problem! Definitely an oversight in #40875. Some quick initial thoughts:
I'll do a little more digging, but let me know if there's a particular way you think this should be handled. For more background: the removal of the CC: @ramonjd and @tellthemachines for visibility since they've also worked on layout and styles related stuff recently. |
I've opened a tentative fix over in #46388 — if that approach looks viable, we'll need to backport it, too. Happy for any feedback / ideas if folks think there's a different solution worth pursuing! |
Update:
|
Description
The KSES filters don't allow to change the block spacing 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 block spacing property is reverted back to its previous value.
Step-by-step reproduction instructions
unfiltered_html
capability, or enable the KSES filters withadd_action( 'init', 'kses_init_filters' );
Screenshots, screen recording, code snippet
Screen.Recording.2022-11-03.at.16.04.24.mov
Environment info
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: