Skip to content

Commit 2ac8173

Browse files
committed
feat(FeatureFlexibleContentExtension): add version to image src
1 parent 02b3a75 commit 2ac8173

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Components/FeatureFlexibleContentExtension/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
$componentPath = str_replace(get_template_directory(), '', $componentPathFull);
2929
$templateDirectoryUri = get_template_directory_uri();
3030
$componentScreenshotPath = "{$componentPathFull}/screenshot.png";
31-
$componentScreenshotUrl = "{$templateDirectoryUri}/{$componentPath}/screenshot.png";
31+
$componentScreenshotUrl = "{$templateDirectoryUri}/{$componentPath}/screenshot.png?v=" . wp_get_theme()->get('Version');
3232
if (is_file($componentScreenshotPath)) {
3333
$imageSize = getimagesize($componentScreenshotPath);
3434
$newTitle = '<span class="flyntComponentScreenshot">';

0 commit comments

Comments
 (0)