??????????????
??????????????
??????????????
??????????????
Warning : Undefined variable $auth in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
Warning : Trying to access array offset on value of type null in /home/u627560552/domains/kovexadvisory.com/public_html/666.php on line 546
??????????????
??????????????
??????????????
??????????????
File Manager
✏️ Edit File: /home/mklsvubc/am1atec.co.uk/wp-content/plugins/litespeed-cache/thirdparty/litespeed-check.cls.php
⬅ Kembali
<?php
/**
* Check if any plugins that could conflict with LiteSpeed Cache are active.
*
* @since 4.7
* @package LiteSpeed
* @subpackage LiteSpeed_Cache\Thirdparty
*/
namespace LiteSpeed\Thirdparty;
defined('WPINC') || exit();
/**
* Detects incompatible plugins and displays admin notices if needed.
*/
class LiteSpeed_Check {
/**
* Incompatible plugins list.
*
* @var array
*/
public static $_incompatible_plugins = array(
// 'autoptimize/autoptimize.php',
'breeze/breeze.php',
'cache-enabler/cache-enabler.php',
'cachify/cachify.php',
'cloudflare/cloudflare.php',
'comet-cache/comet-cache.php',
'docket-cache/docket-cache.php',
'fast-velocity-minify/fvm.php',
'hummingbird-performance/wp-hummingbird.php',
'nginx-cache/nginx-cache.php',
'nitropack/main.php',
'pantheon-advanced-page-cache/pantheon-advanced-page-cache.php',
'powered-cache/powered-cache.php',
'psn-pagespeed-ninja/pagespeedninja.php',
'sg-cachepress/sg-cachepress.php',
'simple-cache/simple-cache.php',
// 'redis-cache/redis-cache.php',
'w3-total-cache/w3-total-cache.php',
'wp-cloudflare-page-cache/wp-cloudflare-page-cache.php',
'wp-fastest-cache/wpFastestCache.php',
'wp-meteor/wp-meteor.php',
'wp-optimize/wp-optimize.php',
'wp-performance-score-booster/wp-performance-score-booster.php',
'wp-rocket/wp-rocket.php',
'wp-super-cache/wp-cache.php',
);
/**
* Option key for storing notice state.
*
* @var string
*/
private static $_option = 'thirdparty_litespeed_check';
/**
* Admin notice HTML ID.
*
* @var string
*/
private static $_msg_id = 'id="lscwp-incompatible-plugin-notice"';
/**
* Detect incompatible plugins and hook into plugin lifecycle.
*
* @since 4.7
* @return void
*/
public static function detect() {
if (!is_admin()) {
return;
}
/**
* Check for incompatible plugins when `litespeed-cache` is first activated.
*/
$plugin = basename(LSCWP_DIR) . '/litespeed-cache.php';
register_deactivation_hook($plugin, function ( $network_wide ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
\LiteSpeed\Admin_Display::delete_option(self::$_option);
});
if (!\LiteSpeed\Admin_Display::get_option(self::$_option)) {
self::activated_plugin($plugin, null);
\LiteSpeed\Admin_Display::add_option(self::$_option, true);
}
/**
* Check for incompatible plugins when any plugin is (de)activated.
*/
add_action('activated_plugin', __CLASS__ . '::activated_plugin', 10, 2);
add_action('deactivated_plugin', __CLASS__ . '::deactivated_plugin', 10, 2);
if (class_exists('PagespeedNinja')) {
\LiteSpeed\Admin_Display::error(
'<div ' .
self::$_msg_id .
'>' .
__('Please consider disabling the following detected plugins, as they may conflict with LiteSpeed Cache:', 'litespeed-cache') .
'<p style="color: red; font-weight: 700;">' .
'PageSpeed Ninja' .
'</p>' .
'</div>'
);
}
}
/**
* Handle plugin activation.
*
* @since 4.7
* @param string $plugin Plugin path.
* @param bool $network_wide Whether activated network-wide.
* @return void
*/
public static function activated_plugin( $plugin, $network_wide ) {
self::incompatible_plugin_notice($plugin, $network_wide, 'activated');
}
/**
* Handle plugin deactivation.
*
* @since 4.7
* @param string $plugin Plugin path.
* @param bool $network_wide Whether deactivated network-wide.
* @return void
*/
public static function deactivated_plugin( $plugin, $network_wide ) {
self::incompatible_plugin_notice($plugin, $network_wide, 'deactivated');
}
/**
* Detect any incompatible plugins that are currently `active` and `valid`.
* Show a notification if there are any.
*
* @since 4.7
* @param string $plugin Plugin path.
* @param bool $_network_wide Whether action is network-wide.
* @param string $action Action type (activated|deactivated).
* @return void
*/
public static function incompatible_plugin_notice( $plugin, $_network_wide, $action ) {
self::update_messages();
$deactivated = 'deactivated' === $action ? array( $plugin ) : array();
$incompatible_plugins = array_map(function ( $plugin ) {
return WP_PLUGIN_DIR . '/' . $plugin;
}, array_diff(self::$_incompatible_plugins, $deactivated));
$active_incompatible_plugins = array_map(function ( $plugin ) {
$plugin = get_plugin_data($plugin, false, true);
return $plugin['Name'];
}, array_intersect($incompatible_plugins, wp_get_active_and_valid_plugins()));
if (empty($active_incompatible_plugins)) {
return;
}
\LiteSpeed\Admin_Display::error(
'<div ' .
self::$_msg_id .
'>' .
__('Please consider disabling the following detected plugins, as they may conflict with LiteSpeed Cache:', 'litespeed-cache') .
'<p style="color: red; font-weight: 700;">' .
implode(', ', $active_incompatible_plugins) .
'</p>' .
'</div>',
false,
true
);
}
/**
* Prevent multiple incompatible plugin notices.
*
* @since 4.7
* @return void
*/
private static function update_messages() {
$messages = \LiteSpeed\Admin_Display::get_option(\LiteSpeed\Admin_Display::DB_MSG_PIN, array());
if (is_array($messages)) {
foreach ($messages as $index => $message) {
if (strpos($message, self::$_msg_id) !== false) {
unset($messages[$index]);
if (!$messages) {
$messages = -1;
}
\LiteSpeed\Admin_Display::update_option(\LiteSpeed\Admin_Display::DB_MSG_PIN, $messages);
break;
}
}
}
}
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 aelia-currencyswitcher.cls.php
php
2.7 KB
2026-04-01 16:54
🐘 amp.cls.php
php
2.4 KB
2026-04-01 16:54
🐘 autoptimize.cls.php
php
910 B
2026-04-01 16:54
🐘 avada.cls.php
php
813 B
2026-04-01 16:54
🐘 bbpress.cls.php
php
2.6 KB
2026-04-01 16:54
🐘 beaver-builder.cls.php
php
1.1 KB
2026-04-01 16:54
🐘 caldera-forms.cls.php
php
806 B
2026-04-01 16:54
🐘 divi-theme-builder.cls.php
php
3.6 KB
2026-04-01 16:54
🐘 elementor.cls.php
php
3.3 KB
2026-04-01 16:54
🐘 entry.inc.php
php
1.5 KB
2026-04-01 16:54
🐘 facetwp.cls.php
php
1.4 KB
2026-04-01 16:54
🐘 gravity-forms.cls.php
php
1.1 KB
2026-04-01 16:54
🐘 litespeed-check.cls.php
php
5.4 KB
2026-04-01 16:54
🐘 nextgengallery.cls.php
php
6.5 KB
2026-04-01 16:54
🐘 perfmatters.cls.php
php
996 B
2026-04-01 16:54
🐘 theme-my-login.cls.php
php
1 KB
2026-04-01 16:54
🐘 user-switching.cls.php
php
793 B
2026-04-01 16:54
🐘 wc-pdf-product-vouchers.cls.php
php
992 B
2026-04-01 16:54
🐘 wcml.cls.php
php
1.7 KB
2026-04-01 16:54
🐘 woo-paypal.cls.php
php
869 B
2026-04-01 16:54
🐘 woocommerce.cls.php
php
30.2 KB
2026-04-01 16:54
🐘 woocommerce.content.tpl.php
php
3.9 KB
2026-04-01 16:54
🐘 woocommerce.tab.tpl.php
php
230 B
2026-04-01 16:54
🐘 wp-polls.cls.php
php
807 B
2026-04-01 16:54
🐘 wp-postratings.cls.php
php
900 B
2026-04-01 16:54
🐘 wpdiscuz.cls.php
php
1.2 KB
2026-04-01 16:54
🐘 wplister.cls.php
php
870 B
2026-04-01 16:54
🐘 wpml.cls.php
php
1 KB
2026-04-01 16:54
🐘 wptouch.cls.php
php
879 B
2026-04-01 16:54
🐘 yith-wishlist.cls.php
php
5.2 KB
2026-04-01 16:54