??????????????
??????????????
??????????????
??????????????
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/pyan.co.uk/wp-content/plugins/litespeed-cache/thirdparty/divi-theme-builder.cls.php
⬅ Kembali
<?php
/**
* The Third Party integration with DIVI Theme.
*
* Ensures Divi Builder edit/preview modes don't conflict with LiteSpeed Cache features,
* and registers required nonces for Divi modules.
*
* @since 2.9.0
* @package LiteSpeed
* @subpackage LiteSpeed_Cache/thirdparty
*/
namespace LiteSpeed\Thirdparty;
defined('WPINC') || exit();
/**
* Handles Divi Theme Builder compatibility.
*/
class Divi_Theme_Builder {
// private static $js_comment_box = false;
/**
* If Divi front-end edit/preview mode is active, disable LSCWP features to avoid conflicts.
*
* Note: This reads query vars only to detect Divi edit states. Nonce verification
* is not applicable here because no privileged action is performed.
*
* @since 2.9.7.2 #435538 #581740 #977284
* @since 2.9.9.1 Added 'et_pb_preview' for loading image from library in Divi page edit
* @return void
*/
public static function preload() {
if (!function_exists('et_setup_theme')) {
return;
}
// Sanitize incoming query params before use.
$et_fb = isset($_GET['et_fb']) ? sanitize_text_field(wp_unslash($_GET['et_fb'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$et_pb_preview = isset($_GET['et_pb_preview']) ? sanitize_text_field(wp_unslash($_GET['et_pb_preview'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$p = isset($_GET['p']) ? absint(wp_unslash($_GET['p'])) : 0; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
$preview = isset($_GET['preview']) ? sanitize_text_field(wp_unslash($_GET['preview'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
if ( '' !== $et_fb || '' !== $et_pb_preview || ( $p && 'true' === $preview ) ) {
do_action( 'litespeed_disable_all', 'divi edit mode' );
}
}
/**
* Detect Divi and register required integrations.
*
* - Allows the crawler to ignore Divi's first-visit "no-cache" for CCSS generation.
* - Adds nonces used by Divi modules so cached pages still validate requests.
*
* @since 2.9.0
* @return void
*/
public static function detect() {
if (!defined('ET_CORE')) {
return;
}
// As DIVI may set first visit to non-cacheable to generate CCSS,
// instruct the crawler to ignore that flag.
if (!defined('LITESPEED_CRAWLER_IGNORE_NONCACHEABLE')) {
define('LITESPEED_CRAWLER_IGNORE_NONCACHEABLE', true);
}
/**
* Add contact form to nonce.
*
* @since 2.9.7.1 #475461
*/
do_action('litespeed_nonce', 'et-pb-contact-form-submit');
/**
* Subscribe module and A/B logging.
*
* @since 3.0
*/
do_action('litespeed_nonce', 'et_frontend_nonce');
do_action('litespeed_nonce', 'et_ab_log_nonce');
/*
// the comment box fix is for user using theme builder, ESI will load the wrong json string
// As we disabled all for edit mode, this is no more needed
add_action( 'et_fb_before_comments_template', 'Divi_Theme_Builder::js_comment_box_on' );
add_action( 'et_fb_after_comments_template', 'Divi_Theme_Builder::js_comment_box_off' );
add_filter( 'litespeed_esi_params-comment-form', 'Divi_Theme_Builder::esi_comment_add_slash' );// Note: this is changed in v2.9.8.1
*/
}
/*
* Enable comment box JS mode (legacy code - currently disabled).
*
public static function js_comment_box_on() {
self::$js_comment_box = true;
}
public static function js_comment_box_off() {
self::$js_comment_box = false;
}
public static function esi_comment_add_slash( $params ) {
if ( self::$js_comment_box ) {
$params['is_json'] = 1;
$params['_ls_silence'] = 1;
}
return $params;
}
*/
}
Nama
Tipe
Ukuran
Diubah
Aksi
🐘 aelia-currencyswitcher.cls.php
php
2.7 KB
2026-04-01 20:54
🐘 amp.cls.php
php
2.4 KB
2026-04-01 20:54
🐘 autoptimize.cls.php
php
910 B
2026-04-01 20:54
🐘 avada.cls.php
php
813 B
2026-04-01 20:54
🐘 bbpress.cls.php
php
2.6 KB
2026-04-01 20:54
🐘 beaver-builder.cls.php
php
1.1 KB
2026-04-01 20:54
🐘 caldera-forms.cls.php
php
806 B
2026-04-01 20:54
🐘 divi-theme-builder.cls.php
php
3.6 KB
2026-04-01 20:54
🐘 elementor.cls.php
php
3.3 KB
2026-04-01 20:54
🐘 entry.inc.php
php
1.5 KB
2026-04-01 20:54
🐘 facetwp.cls.php
php
1.4 KB
2026-04-01 20:54
🐘 gravity-forms.cls.php
php
1.1 KB
2026-04-01 20:54
🐘 litespeed-check.cls.php
php
5.4 KB
2026-04-01 20:54
🐘 nextgengallery.cls.php
php
6.5 KB
2026-04-01 20:54
🐘 perfmatters.cls.php
php
996 B
2026-04-01 20:54
🐘 theme-my-login.cls.php
php
1 KB
2026-04-01 20:54
🐘 user-switching.cls.php
php
793 B
2026-04-01 20:54
🐘 wc-pdf-product-vouchers.cls.php
php
992 B
2026-04-01 20:54
🐘 wcml.cls.php
php
1.7 KB
2026-04-01 20:54
🐘 woo-paypal.cls.php
php
869 B
2026-04-01 20:54
🐘 woocommerce.cls.php
php
30.2 KB
2026-04-01 20:54
🐘 woocommerce.content.tpl.php
php
3.9 KB
2026-04-01 20:54
🐘 woocommerce.tab.tpl.php
php
230 B
2026-04-01 20:54
🐘 wp-polls.cls.php
php
807 B
2026-04-01 20:54
🐘 wp-postratings.cls.php
php
900 B
2026-04-01 20:54
🐘 wpdiscuz.cls.php
php
1.2 KB
2026-04-01 20:54
🐘 wplister.cls.php
php
870 B
2026-04-01 20:54
🐘 wpml.cls.php
php
1 KB
2026-04-01 20:54
🐘 wptouch.cls.php
php
879 B
2026-04-01 20:54
🐘 yith-wishlist.cls.php
php
5.2 KB
2026-04-01 20:54