Skip to content

Commit 32f117e

Browse files
author
Hai Zheng
committed
v7.9.1-b1: * **Avatar** Prevented failed on-demand avatar downloads from redirecting visitors to the WordPress admin area.
1 parent 685c493 commit 32f117e

3 files changed

Lines changed: 12 additions & 5 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.9.1-a3
6+
* Version: 7.9.1-b1
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.9.1-a3' );
38+
! defined( 'LSCWP_V' ) && define( 'LSCWP_V', '7.9.1-b1' );
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: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,11 @@ You can report security bugs through the Patchstack Vulnerability Disclosure Pro
259259

260260
= 8.0 - Coming soon 2026 =
261261
* 🌱**OptiMax** OptiMax to maximize the page score.
262+
263+
= 7.9.1 - Aug 18 2026 =
262264
* **Core** Aligned the runtime PHP and WordPress guards with the published minimum requirements.
263-
* 🐞**Image Optimize** Fixed a fatal error when the WordPress HTTP fallback could not download an image.
265+
* **Image Optimize** Fixed a fatal error when the WordPress HTTP fallback could not download an image.
266+
* **Avatar** Prevented failed on-demand avatar downloads from redirecting visitors to the WordPress admin area.
264267

265268
= 7.9 - Aug 5 2026 =
266269
* **Cloud** Changed Health service to run asynchronously, resuming through WP cron when the cloud defers the request.

src/avatar.cls.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,13 @@ public function serve_static( $md5 ) {
110110
return;
111111
}
112112

113-
$url = $this->_generate( $url );
113+
$generated_url = $this->_generate( $url );
114+
if ( $generated_url === $url ) {
115+
self::debug( '[Avatar] generation failed; bypassing redirect' );
116+
return;
117+
}
114118

115-
wp_safe_redirect( $url );
119+
wp_safe_redirect( $generated_url );
116120
exit;
117121
}
118122

0 commit comments

Comments
 (0)