-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v6.0-rc3: * 🐞**Page Optimize** Fixed a fatal PHP error caused by the …
…WHM plugin's Mass Enable for services not in use. (Michael)
- Loading branch information
Hai Zheng
committed
Nov 27, 2023
1 parent
41e7b29
commit e3c18fd
Showing
3 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
<?php | ||
|
||
/** | ||
* The class to store and manage litespeed db data. | ||
* | ||
|
@@ -7,7 +8,9 @@ | |
* @subpackage LiteSpeed/src | ||
* @author LiteSpeed Technologies <[email protected]> | ||
*/ | ||
|
||
namespace LiteSpeed; | ||
|
||
defined('WPINC') || exit(); | ||
|
||
class Data extends Root | ||
|
@@ -454,6 +457,11 @@ public function table_truncate($tb) | |
public function url_file_clean($file_type) | ||
{ | ||
global $wpdb; | ||
|
||
if (!$this->tb_exist('url_file')) { | ||
return; | ||
} | ||
|
||
$type = $this->_url_file_types[$file_type]; | ||
$q = 'DELETE FROM ' . $this->tb('url_file') . ' WHERE `type` = %d'; | ||
$wpdb->query($wpdb->prepare($q, $type)); | ||
|