Skip to content

Commit 4f6b9bc

Browse files
committed
Switch to wp_scrub_utf8
1 parent e446635 commit 4f6b9bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/class-wp-on-this-day.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ protected static function clamp_window_days( $window_days ) {
343343
* @return string Quoted CSS string.
344344
*/
345345
protected static function esc_css_string( $value ) {
346-
$value = wp_check_invalid_utf8( (string) $value );
346+
$value = wp_scrub_utf8( (string) $value );
347347
$value = str_replace(
348348
array( '\\', '"', "\n", "\r", "\f" ),
349349
array( '\\\\', '\"', '\a ', '\d ', '\c ' ),

0 commit comments

Comments
 (0)