Commit 63dfdf46863 for woocommerce

commit 63dfdf4686399886234d298bc6ae1c8f0974a291
Author: Luigi Teschio <gigitux@gmail.com>
Date:   Mon Sep 21 10:04:14 2026 +0200

    Improve photoswipe error message (#68888)

    * improve photoswipe error message

    * Add changefile(s) from automation for the following project(s): woocommerce

    * add changelog

    * remove replace

    * remove changelog

    ---------

    Co-authored-by: woocommercebot <woocommercebot@users.noreply.github.com>

diff --git a/plugins/woocommerce/changelog/68888-update-improve-photoswipe-message b/plugins/woocommerce/changelog/68888-update-improve-photoswipe-message
new file mode 100644
index 00000000000..443c6da2418
--- /dev/null
+++ b/plugins/woocommerce/changelog/68888-update-improve-photoswipe-message
@@ -0,0 +1,4 @@
+Significance: patch
+Type: enhancement
+
+Improve photoswipe error message.
diff --git a/plugins/woocommerce/client/legacy/js/photoswipe/photoswipe.js b/plugins/woocommerce/client/legacy/js/photoswipe/photoswipe.js
index 38941b453a0..5f38614b339 100755
--- a/plugins/woocommerce/client/legacy/js/photoswipe/photoswipe.js
+++ b/plugins/woocommerce/client/legacy/js/photoswipe/photoswipe.js
@@ -2702,7 +2702,7 @@ var _items,
 	_initialZoomRunning,
 	_controllerDefaultOptions = {
 		index: 0,
-		errorMsg: '<div class="pswp__error-msg"><a href="%url%" target="_blank">The image</a> could not be loaded.</div>',
+		errorMsg: '<div class="pswp__error-msg">The image could not be loaded.</div>',
 		forceProgressiveLoading: false, // TODO
 		preload: [1,1],
 		getNumItemsFn: function() {
@@ -2872,7 +2872,7 @@ var _getItemAt,
 				item.container.innerHTML = '';
 			}

-			item.container.innerHTML = _options.errorMsg.replace('%url%',  item.src );
+			item.container.innerHTML = _options.errorMsg;
 			return true;

 		}