Skip to content

Commit

Permalink
PLUGINS-6911
Browse files Browse the repository at this point in the history
  • Loading branch information
meteor-ec committed Jul 8, 2024
1 parent ec91463 commit 6b54ea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions includes/class-ecwid-static-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ protected static function get_static_snapshot( $url, $dynamic_css = '' ) {
$pattern = '/<img(.*?)>/is';

$fetched_data->htmlCode = preg_replace( $pattern, '<img $1 decoding="async" loading="lazy">', $fetched_data->htmlCode );
$fetched_data->htmlCode = wp_encode_emoji( $fetched_data->htmlCode );
}

if ( isset( $fetched_data->lastUpdated ) ) {
Expand Down
2 changes: 1 addition & 1 deletion lib/ecwid_platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 6b54ea4

Please sign in to comment.