-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Custom CSS not saving #46651
Comments
Looking at putting custom css behind an experimental flag until this is resolved. |
This feature has been moved behind an experimental flag for now. At the moment a valid |
@glendaviesnz I think we need to consider the KSES filters as well. Right now, the Custom CSS feature within Global Styles doesn't work when the KSES filters are active for users with the These filters are only registered when a user doesn't have the You can follow these instructions to observe the differences:
So I think the new Custom CSS feature within Global Styles should still work when the KSES filters are active. |
Yes, we can close this one. Also related PR #47062. |
Description
Custom CSS is being reverted when pressing save.
Step-by-step reproduction instructions
config: { "DISALLOW_UNFILTERED_HTML": true },
to the top level in .wp-env.json and starting with wp-envh1.wp-block-heading { text-decoration:underline; color: orange; }
Screenshots, screen recording, code snippet
Screen.Capture.on.2022-12-19.at.13-09-07.mp4
The save HTTP request included the css values:
The response however did not include a "css" property.
Environment info
Using the wp-env from Gutenberg 14.8.01-rc.1, can also reproduce on current trunk (1b5994a)
With DISALLOW_UNFILTERED_HTML, or presumably admin on multisite install or using any role with edit_theme_options but w/o unfiltered_html
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: