summaryrefslogtreecommitdiffstats
path: root/wp-includes/js/thickbox
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:57:30 +0000
commitfa9a33d818470a5796f0ff8797f98b510ed8de18 (patch)
treebde6a1eede376f9b5df5898ce812330152984d8e /wp-includes/js/thickbox
parentReleasing progress-linux version 6.4.3+dfsg1-1~progress7.99u1. (diff)
downloadwordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.tar.xz
wordpress-fa9a33d818470a5796f0ff8797f98b510ed8de18.zip
Merging upstream version 6.5+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'wp-includes/js/thickbox')
-rw-r--r--wp-includes/js/thickbox/thickbox.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/wp-includes/js/thickbox/thickbox.js b/wp-includes/js/thickbox/thickbox.js
index 5470467..e8b9567 100644
--- a/wp-includes/js/thickbox/thickbox.js
+++ b/wp-includes/js/thickbox/thickbox.js
@@ -76,7 +76,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
baseURL = url;
}
- var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.webp$/;
+ var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$|\.webp$|\.avif$/;
var urlType = baseURL.toLowerCase().match(urlString);
if(urlType == '.jpg' ||
@@ -84,7 +84,8 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic
urlType == '.png' ||
urlType == '.gif' ||
urlType == '.bmp' ||
- urlType == '.webp'
+ urlType == '.webp' ||
+ urlType == '.avif'
){//code to show images
TB_PrevCaption = "";