[wp-trac] [WordPress Trac] #37134: Allow filtering of safecss_filter_attr
WordPress Trac
noreply at wordpress.org
Wed Jun 22 02:26:30 UTC 2016
#37134: Allow filtering of safecss_filter_attr
---------------------------+------------------------------
Reporter: paulschreiber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: kses | Focuses:
---------------------------+------------------------------
Comment (by paulschreiber):
@rmccue The `safe_style_css` filter won't work in this case, because, as
described in #24157 safecss_filter_attr rejects any CSS with parentheses.
Meaning `<p style="color: rgb(100,100,100,0.5)">` gets rejected even
though the `color` attribute is already whitelisted (see
safecss_filter_attr() in kses.php around line 1714).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37134#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list