diff --git a/includes/UcFront.php b/includes/UcFront.php index 20a3dfb..49d0b6f 100644 --- a/includes/UcFront.php +++ b/includes/UcFront.php @@ -124,7 +124,7 @@ protected function changeContent($content, $imageId) $isLocal = true; if (\strpos($attachedFile, \get_option('uploadcare_cdn_base')) !== false) { - $imageUrl = $attachedFile; + $imageUrl = \sprintf('https://%s/%s/', \get_option('uploadcare_cdn_base'), \get_post_meta($imageId, 'uploadcare_uuid', true)); $isLocal = false; }