Skip to content

Commit

Permalink
Fix kses filter for un-prettified filters (#49004)
Browse files Browse the repository at this point in the history
* Fix kses filter for un-prettified filters

* Remove unnecessary backslash
  • Loading branch information
Alex Lende committed Mar 13, 2023
1 parent 699dd44 commit 4feb24f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/kses.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function gutenberg_override_core_kses_init_filters() {
*/
function allow_filter_in_styles( $allow_css, $css_test_string ) {
if ( preg_match(
"/^filter: url\('#wp-duotone-[-a-zA-Z0-9]+'\) \!important$/",
"/^filter:\s*url\('#wp-duotone-[-a-zA-Z0-9]+'\) !important$/",
$css_test_string
) ) {
return true;
Expand Down

0 comments on commit 4feb24f

Please sign in to comment.