From e6eb51763b5bb9f08925328430a17b9145cd9f28 Mon Sep 17 00:00:00 2001 From: Hai Zheng Date: Thu, 12 Dec 2024 13:23:08 -0500 Subject: [PATCH] upgrade bugfix --- litespeed-cache.php | 4 ++-- src/data.cls.php | 1 + src/data.upgrade.func.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/litespeed-cache.php b/litespeed-cache.php index 41774ef9f..23365368e 100644 --- a/litespeed-cache.php +++ b/litespeed-cache.php @@ -4,7 +4,7 @@ * Plugin Name: LiteSpeed Cache * Plugin URI: https://www.litespeedtech.com/products/cache-plugins/wordpress-acceleration * Description: High-performance page caching and site optimization from LiteSpeed - * Version: 7.0-b23 + * Version: 7.0-b25 * Author: LiteSpeed Technologies * Author URI: https://www.litespeedtech.com * License: GPLv3 @@ -34,7 +34,7 @@ return; } -!defined('LSCWP_V') && define('LSCWP_V', '7.0-b23'); +!defined('LSCWP_V') && define('LSCWP_V', '7.0-b25'); !defined('LSCWP_CONTENT_DIR') && define('LSCWP_CONTENT_DIR', WP_CONTENT_DIR); !defined('LSCWP_DIR') && define('LSCWP_DIR', __DIR__ . '/'); // Full absolute path '/var/www/html/***/wp-content/plugins/litespeed-cache/' or MU diff --git a/src/data.cls.php b/src/data.cls.php index 1e2759258..c168259f7 100644 --- a/src/data.cls.php +++ b/src/data.cls.php @@ -24,6 +24,7 @@ class Data extends Root '4.3' => array('litespeed_update_4_3'), '4.4.4-b1' => array('litespeed_update_4_4_4'), '5.3-a5' => array('litespeed_update_5_3'), + '7.0-b25' => array('litespeed_update_7'), ); private $_db_site_updater = array( diff --git a/src/data.upgrade.func.php b/src/data.upgrade.func.php index 1de68d0a0..f9ad296ce 100644 --- a/src/data.upgrade.func.php +++ b/src/data.upgrade.func.php @@ -41,7 +41,7 @@ function litespeed_update_7() $data = array( 'domain_key' => $domain_key, ); - $res = $__cloud->post(self::SVC_D_V3UPGRADE, $data); + $res = $__cloud->post(Cloud::SVC_D_V3UPGRADE, $data); if (!empty($res['qc_activated'])) { if ($res['qc_activated'] != 'deleted') { Cloud::save_summary(array('qc_activated' => $res['qc_activated']));