$82 GRAYBYTE WORDPRESS FILE MANAGER $16

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 172.67.217.254 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/home/bravrvjk/hpgt.org/wp-content/plugins/litespeed-cache/thirdparty/

HOME
Current File : /home/bravrvjk/hpgt.org/wp-content/plugins/litespeed-cache/thirdparty//elementor.cls.php
<?php
/**
 * The Third Party integration with the Elementor plugin.
 *
 * Detects Elementor editor/preview actions and safely disables LiteSpeed Cache features
 * that could interfere with live editing. Also hooks cache purge when Elementor regenerates
 * its CSS & data.
 *
 * @since      2.9.8.8
 * @package    LiteSpeed
 * @subpackage LiteSpeed_Cache/thirdparty
 */

namespace LiteSpeed\Thirdparty;

defined('WPINC') || exit();

/**
 * Handles Elementor compatibility.
 */
class Elementor {

	/**
	 * Preload hooks and disable caching features during Elementor edit/preview flows.
	 *
	 * This method only inspects query/server values to detect editor context.
	 * No privileged actions are performed here, so nonce verification is not required.
	 *
	 * @since 2.9.8.8
	 * @return void
	 */
	public static function preload() {
		if ( ! defined( 'ELEMENTOR_VERSION' ) ) {
			return;
		}

		// If user explicitly opened the Elementor editor, disable all LSCWP features.
		$action = isset( $_GET['action'] ) ? sanitize_text_field( wp_unslash( $_GET['action'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		if ( 'elementor' === $action ) {
			do_action( 'litespeed_disable_all', 'elementor edit mode' );
		}

		// If the referrer indicates an Elementor editor context, inspect possible save actions.
		$http_referer = isset( $_SERVER['HTTP_REFERER'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_REFERER'] ) ) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
		if ( '' !== $http_referer && false !== strpos( $http_referer, 'action=elementor' ) ) {
			// Elementor posts JSON in the 'actions' request field when saving from editor.
			// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.ValidatedSanitizedInput.InputNotSanitized
			$actions_raw = isset( $_REQUEST['actions'] ) ? wp_unslash( $_REQUEST['actions'] ) : '';
			if ( '' !== $actions_raw ) {
				// Use a forgiving sanitizer for JSON strings, then decode.
				$json = json_decode( sanitize_textarea_field( $actions_raw ), true );
				// Debug2::debug( '3rd Elementor', $json );

				if (
					! empty( $json['save_builder']['action'] ) &&
					'save_builder' === $json['save_builder']['action'] &&
					! empty( $json['save_builder']['data']['status'] ) &&
					'publish' === $json['save_builder']['data']['status']
				) {
					// Publishing from editor — allow normal flow so crawler/purge can run.
					return;
				}
			}

			// In all other editor-referrer cases, disable LSCWP features during edit.
			do_action( 'litespeed_disable_all', 'elementor edit mode in HTTP_REFERER' );
		}

		// Clear LSC cache when Elementor regenerates CSS & Data.
		add_action( 'elementor/core/files/clear_cache', __CLASS__ . '::regenerate_litespeed_cache' );
	}

	/**
	 * Disable LiteSpeed ESI explicitly (kept for backward compatibility if re-enabled).
	 *
	 * @since 2.9.8.8
	 * @return void
	 */
	public static function disable_litespeed_esi() {
		if ( ! defined( 'LITESPEED_ESI_OFF' ) ) {
			define( 'LITESPEED_ESI_OFF', true );
		}
	}

	/**
	 * Purge LiteSpeed Cache when Elementor regenerates its CSS & Data.
	 *
	 * @since 2.9.8.8
	 * @return void
	 */
	public static function regenerate_litespeed_cache() {
		do_action( 'litespeed_purge_all', 'Elementor - Regenerate CSS & Data' );
	}
}


Current_dir [ WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
4 Apr 2026 1.57 AM
bravrvjk / bravrvjk
0755
aelia-currencyswitcher.cls.php
2.669 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
amp.cls.php
2.441 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
autoptimize.cls.php
0.889 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
avada.cls.php
0.794 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
bbpress.cls.php
2.575 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
beaver-builder.cls.php
1.116 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
caldera-forms.cls.php
0.787 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
divi-theme-builder.cls.php
3.567 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
elementor.cls.php
3.254 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
entry.inc.php
1.51 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
facetwp.cls.php
1.444 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
gravity-forms.cls.php
1.144 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
litespeed-check.cls.php
5.411 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
nextgengallery.cls.php
6.513 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
perfmatters.cls.php
0.973 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
theme-my-login.cls.php
1.01 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
user-switching.cls.php
0.774 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wc-pdf-product-vouchers.cls.php
0.969 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wcml.cls.php
1.741 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
woo-paypal.cls.php
0.849 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
woocommerce.cls.php
30.152 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
woocommerce.content.tpl.php
3.905 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
woocommerce.tab.tpl.php
0.225 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wp-polls.cls.php
0.788 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wp-postratings.cls.php
0.879 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wpdiscuz.cls.php
1.182 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wplister.cls.php
0.85 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wpml.cls.php
1.021 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
wptouch.cls.php
0.858 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644
yith-wishlist.cls.php
5.232 KB
1 Apr 2026 8.54 PM
bravrvjk / bravrvjk
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF