Plugin Directory

Changeset 3077216


Ignore:
Timestamp:
04/25/2024 07:07:02 PM (20 months ago)
Author:
LiteSpeedTech
Message:

Release v6.2.0.1

Location:
litespeed-cache
Files:
336 added
4 edited

Legend:

Unmodified
Added
Removed
  • litespeed-cache/trunk/litespeed-cache.php

    r3076030 r3077216  
    55 * Plugin URI:        https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
    66 * Description:       High-performance page caching and site optimization from LiteSpeed
    7  * Version:           6.2
     7 * Version:           6.2.0.1
    88 * Author:            LiteSpeed Technologies
    99 * Author URI:        https://www.litespeedtech.com
     
    3535}
    3636
    37 !defined('LSCWP_V') && define('LSCWP_V', '6.2');
     37!defined('LSCWP_V') && define('LSCWP_V', '6.2.0.1');
    3838
    3939!defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR);
  • litespeed-cache/trunk/readme.txt

    r3076030 r3077216  
    251251== Changelog ==
    252252
     253= 6.2.0.1 - Apr 25 2024 =
     254* 🔥🐞**Page Optimize** Fixed the image display issue that occurs with Elementors `data-settings` attribute when the WebP image is not yet ready. (kanten/cbwwebmaster/reedock #132840 #680939 #326525)
     255
    253256= 6.2 - Apr 23 2024 =
    254257* 🌱**Crawler** Added Crawler hit/miss filter. (#328853)
  • litespeed-cache/trunk/src/media.cls.php

    r3076030 r3077216  
    984984    {
    985985        $pattern = '/data-settings="(.*?)"/i';
     986        $parent_class = $this;
    986987
    987988        preg_match_all($pattern, $content, $matches, PREG_SET_ORDER);
     
    997998
    998999            if (json_last_error() === JSON_ERROR_NONE) {
    999                 array_walk_recursive($jsonData, function (&$item, $key) {
     1000                $did_webp_replace = false;
     1001
     1002                array_walk_recursive($jsonData, function (&$item, $key) use (&$did_webp_replace, $parent_class) {
    10001003                    if ($key == 'url') {
    1001                         $item = $this->replace_webp($item);
     1004                        $item_image = $parent_class->replace_webp($item);
     1005                        if ($item_image) {
     1006                            $item = $item_image;
     1007
     1008                            $did_webp_replace = true;
     1009                        }
    10021010                    }
    10031011                });
    10041012
    1005                 // Re-encode the modified array back to a JSON string
    1006                 $newJsonString = json_encode($jsonData);
    1007 
    1008                 // Re-encode the JSON string to HTML entities only if it was originally encoded
    1009                 if ($isEncoded) {
    1010                     $newJsonString = htmlspecialchars($newJsonString, ENT_QUOTES | 0); // ENT_HTML401 is for PHPv5.4+
     1013                if ($did_webp_replace) {
     1014                    // Re-encode the modified array back to a JSON string
     1015                    $newJsonString = json_encode($jsonData);
     1016
     1017                    // Re-encode the JSON string to HTML entities only if it was originally encoded
     1018                    if ($isEncoded) {
     1019                        $newJsonString = htmlspecialchars($newJsonString, ENT_QUOTES | 0); // ENT_HTML401 is for PHPv5.4+
     1020                    }
     1021
     1022                    // Replace the old JSON string in the content with the new, modified JSON string
     1023                    $content = str_replace($match[1], $newJsonString, $content);
    10111024                }
    1012 
    1013                 // Replace the old JSON string in the content with the new, modified JSON string
    1014                 $content = str_replace($match[1], $newJsonString, $content);
    10151025            }
    10161026        }
  • litespeed-cache/trunk/tpl/toolbox/beta_test.tpl.php

    r3076030 r3077216  
    77// Existing public version list
    88$v_list = array(
    9     '6.2',
     9    '6.2.0.1',
    1010    '6.1',
    1111    '5.7.0.1',
Note: See TracChangeset for help on using the changeset viewer.