Skip to content
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

Expand the allow list for inline styles for wp_kses functions #5

Open
dlh01 opened this issue Feb 27, 2023 · 2 comments
Open

Expand the allow list for inline styles for wp_kses functions #5

dlh01 opened this issue Feb 27, 2023 · 2 comments

Comments

@dlh01
Copy link
Member

dlh01 commented Feb 27, 2023

Originally reported by @mslinnea in an internal repo:

When using wp_kses functions, inline styles are filtered, and by default the CSS attribute "position" is removed. There are likely other CSS attributes removed that we may want to allow by default. The filter for this is safe_style_css

See https://wordpress.stackexchange.com/questions/173526/why-is-wp-kses-not-keeping-style-attributes-as-expected

@dlh01
Copy link
Member Author

dlh01 commented Feb 27, 2023

This might have been fixed in core with https://core.trac.wordpress.org/changeset/55184, though.

@mboynes
Copy link
Contributor

mboynes commented Jun 1, 2023

What CSS properties should be added?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants