diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/js/thickbox/thickbox.js
--- a/wp/wp-includes/js/thickbox/thickbox.js Thu Sep 29 08:06:27 2022 +0200
+++ b/wp/wp-includes/js/thickbox/thickbox.js Fri Sep 05 18:40:08 2025 +0200
@@ -76,10 +76,17 @@
baseURL = url;
}
- var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
+ var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.webp$|\.avif$/;
var urlType = baseURL.toLowerCase().match(urlString);
- if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
+ if(urlType == '.jpg' ||
+ urlType == '.jpeg' ||
+ urlType == '.png' ||
+ urlType == '.gif' ||
+ urlType == '.bmp' ||
+ urlType == '.webp' ||
+ urlType == '.avif'
+ ){//code to show images
TB_PrevCaption = "";
TB_PrevURL = "";
@@ -139,7 +146,7 @@
TB_WIDTH = imageWidth + 30;
TB_HEIGHT = imageHeight + 60;
- jQuery("#TB_window").append(""+thickboxL10n.close+"" + "