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

WordPress Trac noreply at wordpress.org
Wed Mar 8 22:54:09 UTC 2023


#57780: wp_kses: Add filter to css_url_data_types
-------------------------------------------------+-------------------------
 Reporter:  scruffian                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
                                                 |  Review
Component:  General                              |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch has-testing-info has-      |     Focuses:
  screenshots                                    |
-------------------------------------------------+-------------------------
Changes (by ironprogrammer):

 * keywords:  has-patch => has-patch has-testing-info has-screenshots


Comment:

 For additional context, this update is required for core support of this
 duotone PR: https://github.com/WordPress/gutenberg/pull/48281.

 == Test Report

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/4108

 === Steps to Test
 1. Make sure that the Gutenberg plugin is disabled.
 2. Install the
 [https://gist.github.com/ironprogrammer/62151bd5ca3f5a97051f641c3d7410d7
 test mu-plugin located here].
 3. Confirm that the displayed image is in purple/yellow duotone, and
 inspect the markup to verify styles applied.

 === Expected Results
 - ✅ The displayed image should be in purple/yellow duotone.
 - ✅ The image should not be blurred.

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 12.6.3
 - Browser: Safari 16.3
 - Server: nginx/1.23.3
 - PHP: 7.4.33
 - WordPress: 6.2-beta5-55481-src
 - Theme: twentytwentythree v1.1
 - Active Plugins:
  - modern-images-wp v1.1.0
  - trac-57780 (mu-plugin noted above)

 === Actual Results
 - ✅ The kitten image was displayed with the purple/yellow duotone effect.
 - ✅ Image was not blurred (i.e. `filter: blur(5px)` was not allowed
 through `wp_kses()`).

 === Supplemental Artifacts
 ||= Before Patch =||= After Patch =||
 || [[Image(https://cldup.com/-y9y-jSvKI.thumb.jpg, 300px)]] ||
 [[Image(https://cldup.com/qUimESjQup.thumb.jpg, 300px)]] ||

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


More information about the wp-trac mailing list