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

WordPress Trac noreply at wordpress.org
Thu Jun 18 21:00:01 UTC 2020


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

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48086" 48086]:
 {{{
 #!CommitTicketReference repository="" revision="48086"
 Formatting: new filter `safecss_filter_attr_allow_css` on css parts.

 Enables developers to determine whether a section of CSS should be allowed
 or discarded. By default, the value will be false if the part contains \ (
 & } = or comments. Returning true allows the CSS part to be included in
 the output.

 Replaces the `safe_style_disallowed_chars` filter introduced in r47891.

 Props azaozz.
 Fixes #37134.
 }}}

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


More information about the wp-trac mailing list