[wp-trac] [WordPress Trac] #48376: Update kses safecss_filter_attr function to allow gradient backgrounds
WordPress Trac
noreply at wordpress.org
Sun Oct 20 20:55:30 UTC 2019
#48376: Update kses safecss_filter_attr function to allow gradient backgrounds
------------------------------+-----------------------------
Reporter: jorgefilipecosta | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
------------------------------+-----------------------------
Currently, our KSES rules remove gradient backgrounds from style
attributes (on contributor roles).
The block editor is introducing a mechanism to allow users to create and
use a custom background. If our KSES rules are not updated, only roles
with unfiltered HTML permissions will take advantage of this
functionality.
I think our KSES rules should be updated. URL backgrounds, for example,
are accepted, given that's the case, I think gradients should also be
accepted. Ultimately what one can do with gradient background one can do
with a URL background.
Related block editor issue:
https://github.com/WordPress/gutenberg/issues/17938
Related block editor PR's:
https://github.com/WordPress/gutenberg/pull/17603
https://github.com/WordPress/gutenberg/pull/18001
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48376>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list