??????????????
??????????????
??????????????
??????????????
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/facetwp.cls.php
⬅ Kembali
<?php
/**
* The Third Party integration with FacetWP.
*
* @since 2.9.9
* @package LiteSpeed
* @subpackage LiteSpeed_Cache\Thirdparty
*/
namespace LiteSpeed\Thirdparty;
defined('WPINC') || exit();
/**
* FacetWP compatibility hooks for LiteSpeed Cache.
*/
class Facetwp {
/**
* Detect FacetWP context and adjust ESI params when FacetWP returns buffered HTML via the "wp" template.
*
* Note: We only *read* POST data here to detect an AJAX context; no privileged action is performed.
* Data is unslashed and sanitized before comparison.
*
* @since 2.9.9
* @return void
*/
public static function detect() {
if ( ! defined( 'FACETWP_VERSION' ) ) {
return;
}
/**
* For Facetwp, if the template is "wp", return the buffered HTML
* So marked as rest call to put is_json to ESI
*/
// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Reading POST to detect FacetWP AJAX; no state change or sensitive action performed.
if ( ! empty( $_POST['action'] ) && ! empty( $_POST['data'] ) && ! empty( $_POST['data']['template'] ) && 'wp' === $_POST['data']['template'] ) {
add_filter( 'litespeed_esi_params', __CLASS__ . '::set_is_json' );
}
}
/**
* Mark ESI response as JSON for FacetWP's "wp" template refreshes.
*
* @since 2.9.9
* @param array $params Existing ESI params.
* @return array Modified ESI params.
*/
public static function set_is_json( $params ) {
$params['is_json'] = 1;
return $params;
}
}
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