[wp-trac] [WordPress Trac] #42729: Permit use of 'text-transform' in safecss_filter_attr()
WordPress Trac
noreply at wordpress.org
Tue Nov 28 12:48:42 UTC 2017
#42729: Permit use of 'text-transform' in safecss_filter_attr()
-----------------------------+------------------------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Editor | Version:
Severity: normal | Keywords: needs-patch needs-unit-tests
Focuses: |
-----------------------------+------------------------------------------
As a WordPress user, I'd expect that whitelisting use of the `style`
attribute for `<span>` elements would permit use of `text-
transform:lowercase;` within the attribute.
However, doing so also requires filtering `safe_style_css`. Given `text-
transform` is a text formatting property like `font-style` and `text-
decoration`, it makes sense to also include it in
`safecss_filter_attr()`'s default property set.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42729>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list