Skip to content

Commit

Permalink
Fix image url
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew72ru committed Mar 9, 2021
1 parent 34b710a commit 9ad43eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/UcFront.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9ad43eb

Please sign in to comment.