From 6b54ea445ea5244bbfd2818789185c9220ef77b2 Mon Sep 17 00:00:00 2001 From: meteor Date: Mon, 8 Jul 2024 14:08:15 +0400 Subject: [PATCH] PLUGINS-6911 --- includes/class-ecwid-static-page.php | 1 + lib/ecwid_platform.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/class-ecwid-static-page.php b/includes/class-ecwid-static-page.php index f3abf509..82a8920e 100644 --- a/includes/class-ecwid-static-page.php +++ b/includes/class-ecwid-static-page.php @@ -219,6 +219,7 @@ protected static function get_static_snapshot( $url, $dynamic_css = '' ) { $pattern = '//is'; $fetched_data->htmlCode = preg_replace( $pattern, '', $fetched_data->htmlCode ); + $fetched_data->htmlCode = wp_encode_emoji( $fetched_data->htmlCode ); } if ( isset( $fetched_data->lastUpdated ) ) { diff --git a/lib/ecwid_platform.php b/lib/ecwid_platform.php index be44ceaa..5bc55274 100644 --- a/lib/ecwid_platform.php +++ b/lib/ecwid_platform.php @@ -225,7 +225,7 @@ public static function cache_set( $name, $value, $expires_after = 0 ) { 'expires' => $expires_after, ) ); - self::encode_emoji( $value ); + // self::encode_emoji( $value ); set_transient( 'ecwid_' . $name, $value, $expires_after ); }