[wp-trac] [WordPress Trac] #57780: wp_kses: Add filter to css_url_data_types

WordPress Trac noreply at wordpress.org
Mon Mar 20 08:24:02 UTC 2023


#57780: wp_kses: Add filter to css_url_data_types
-------------------------------------------------+-------------------------
 Reporter:  scruffian                            |       Owner:
                                                 |  SergeyBiryukov
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.3
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-testing-info has-      |     Focuses:
  screenshots gutenberg-merge                    |
-------------------------------------------------+-------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55564" 55564]:
 {{{
 #!CommitTicketReference repository="" revision="55564"
 KSES: Allow `filter` property to accept a URL in `safecss_filter_attr()`.

 CSS filters can accept `url()` as a reference to an SVG filter element:
 {{{
 filter: url( file.svg#filter-element-id );
 }}}
 This commit allows for that syntax to be used in inline CSS.

 Original PR from Gutenberg repository:
 * [https://github.com/WordPress/gutenberg/pull/48281 #48281 Duotone: Use
 the style engine to generate CSS for Duotone]

 References:
 * [https://developer.mozilla.org/en-US/docs/Web/CSS/filter MDN Web Docs:
 filter()]
 * [https://developer.mozilla.org/en-US/docs/Web/CSS/url MDN Web Docs:
 url()]

 Follow-up to [44136], [52049].

 Props scruffian, jeryj, ironprogrammer, azaozz, hellofromTonya,
 SergeyBiryukov.
 Fixes #57780.
 }}}

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


More information about the wp-trac mailing list