Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #55786


Ignore:
Timestamp:
05/21/2022 06:52:53 PM (3 years ago)
Author:
sabernhardt
Comment:

Hi and welcome to Trac! Thanks for the report.

The patch will need to edit the thickbox.js file in the js/_enqueues directory.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55786

    • Property Keywords needs-patch good-first-bug added; has-patch removed
    • Property Component changed from General to External Libraries
  • Ticket #55786 – Description

    initial v1  
    1 -- The line of code 79 of /wp-includes/js/thickboxthickbox.js is:
    2 
     1-- The line of code 79 of /wp-includes/js/thickbox/thickbox.js is:
     2{{{
    33var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
    4 
     4}}}
    55
    66-- It should be something like this:
    7 
     7{{{
    88var urlString = /\.webp|\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
    9 
     9}}}
    1010
    1111-----------------
    1212
    1313
    14 The line of code 82 of /wp-includes/js/thickboxthickbox.js is:
    15 
     14The line of code 82 of /wp-includes/js/thickbox/thickbox.js is:
     15{{{
    1616if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
    17 
     17}}}
    1818
    1919-- It should be something like this:
    20 
     20{{{
    2121if(urlType == '.webp' || urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
    22 
     22}}}
    2323
    2424I hope this will help.