Skip to content

Commit 5292adb

Browse files
author
Hai Zheng
committed
v7.4-b16: * **Misc** Dropped sanitize_file_name usage to prevent template failure when 3rd party plugin manipulated that filter.
1 parent b50157e commit 5292adb

7 files changed

Lines changed: 8 additions & 7 deletions

File tree

litespeed-cache.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: LiteSpeed Cache
44
* Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration
55
* Description: High-performance page caching and site optimization from LiteSpeed
6-
* Version: 7.4-b15
6+
* Version: 7.4-b16
77
* Author: LiteSpeed Technologies
88
* Author URI: https://www.litespeedtech.com
99
* License: GPLv3
@@ -35,7 +35,7 @@
3535
return;
3636
}
3737

38-
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '7.4-b15' );
38+
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '7.4-b16' );
3939

4040
! defined( 'LSCWP_CONTENT_DIR' ) && define( 'LSCWP_CONTENT_DIR', WP_CONTENT_DIR );
4141
! defined( 'LSCWP_DIR' ) && define( 'LSCWP_DIR', __DIR__ . '/' ); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
271271
* **Misc** Supported `LITESPEED_DEV` const to switch to dev environment.
272272
* **Misc** Allows leading `_` for private func/vars in format checker.
273273
* **Misc** Suppressed frequent version check when certain database option is cached.
274+
* **Misc** Dropped `sanitize_file_name` usage to prevent template failure when 3rd party plugin manipulated that filter.
274275

275276
= 7.3.0.1 - Jul 30 2025 =
276277
* **Page Optimize** Fixed the page score impact caused by CSS placeholder. (wpconvert, Sean Thompson)

tpl/dash/entry.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<?php
3939
foreach ( $menu_list as $tab_key => $tab_val ) {
4040
echo '<div data-litespeed-layout="' . esc_attr( $tab_key ) . '">';
41-
require LSCWP_DIR . 'tpl/dash/' . sanitize_file_name( $tab_key ) . '.tpl.php';
41+
require LSCWP_DIR . 'tpl/dash/' . $tab_key . '.tpl.php';
4242
echo '</div>';
4343
}
4444
?>

tpl/db_optm/entry.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<?php
3939
foreach ( $menu_list as $tab_key => $tab_val ) {
4040
echo '<div data-litespeed-layout="' . esc_attr( $tab_key ) . '">';
41-
require LSCWP_DIR . 'tpl/db_optm/' . sanitize_file_name( $tab_key ) . '.tpl.php';
41+
require LSCWP_DIR . 'tpl/db_optm/' . $tab_key . '.tpl.php';
4242
echo '</div>';
4343
}
4444
?>

tpl/general/entry.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<?php
4646
foreach ( $menu_list as $menu_key => $val ) {
4747
echo '<div data-litespeed-layout="' . esc_attr( $menu_key ) . '">';
48-
require LSCWP_DIR . 'tpl/general/' . sanitize_file_name( $menu_key ) . '.tpl.php';
48+
require LSCWP_DIR . 'tpl/general/' . $menu_key . '.tpl.php';
4949
echo '</div>';
5050
}
5151
?>

tpl/img_optm/entry.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<?php
4545
foreach ( $menu_list as $menu_key => $val ) {
4646
echo '<div data-litespeed-layout="' . esc_attr( $menu_key ) . '">';
47-
require LSCWP_DIR . 'tpl/img_optm/' . sanitize_file_name( $menu_key ) . '.tpl.php';
47+
require LSCWP_DIR . 'tpl/img_optm/' . $menu_key . '.tpl.php';
4848
echo '</div>';
4949
}
5050
?>

tpl/page_optm/entry.tpl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
foreach ( $menu_list as $tab_key => $tab_val ) {
5656
?>
5757
<div data-litespeed-layout='<?php echo esc_attr( $tab_key ); ?>'>
58-
<?php require LSCWP_DIR . 'tpl/page_optm/' . sanitize_file_name( $tab_key ) . '.tpl.php'; ?>
58+
<?php require LSCWP_DIR . 'tpl/page_optm/' . $tab_key . '.tpl.php'; ?>
5959
</div>
6060
<?php
6161
}

0 commit comments

Comments
 (0)