[wp-trac] [WordPress Trac] #48376: Update kses safecss_filter_attr function to allow gradient backgrounds

WordPress Trac noreply at wordpress.org
Sun Oct 20 21:20:56 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            |  Resolution:
 Keywords:  has-patch         |     Focuses:
------------------------------+------------------------------

Comment (by jorgefilipecosta):

 As a test case, I did the following:
 Logged as a contributor rule.
 Opened code editor mode.
 Pasted the following content:

 {{{
 <!-- wp:html -->
 <div style="width: 100px;height: 100px;background: linear-
 gradient(red,yellow)"></div>
 <!-- /wp:html -->
 }}}

 Submitted the post for review.
 Reloaded the editor and verified the gradient was still being applied
 (without this patch, the gradient is removed).


 GitHub PR where we can see the green CI light:
 https://github.com/WordPress/wordpress-develop/pull/110

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48376#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list