[wp-trac] [WordPress Trac] #37134: Allow filtering of safecss_filter_attr

WordPress Trac noreply at wordpress.org
Fri Jun 5 22:23:40 UTC 2020


#37134: Allow filtering of safecss_filter_attr
-------------------------------------------------+-------------------------
 Reporter:  paulschreiber                        |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  reopened
 Priority:  normal                               |   Milestone:  5.5
Component:  Formatting                           |     Version:  4.6
 Severity:  normal                               |  Resolution:
 Keywords:  kses has-patch has-unit-tests        |     Focuses:
  needs-dev-note                                 |
-------------------------------------------------+-------------------------

Comment (by azaozz):

 Replying to [comment:22 adamsilverstein]:

 Yes, [attachment:"37134.8.diff"] looks/works a lot better imho. Perhaps
 the filter can be "reversed", `true` to allow the CSS, `false` to discard
 it. Also maybe the var and filter names can be tweaked a bit. Patch coming
 up :)

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


More information about the wp-trac mailing list