Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/litespee.../thirdpar...
File: elementor.cls.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The Third Party integration with the bbPress plugin.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 2.9.8.8
[4] Fix | Delete
*/
[5] Fix | Delete
namespace LiteSpeed\Thirdparty;
[6] Fix | Delete
defined('WPINC') || exit();
[7] Fix | Delete
[8] Fix | Delete
use LiteSpeed\Debug2;
[9] Fix | Delete
[10] Fix | Delete
class Elementor
[11] Fix | Delete
{
[12] Fix | Delete
public static function preload()
[13] Fix | Delete
{
[14] Fix | Delete
if (!defined('ELEMENTOR_VERSION')) {
[15] Fix | Delete
return;
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
if (!is_admin()) {
[19] Fix | Delete
// add_action( 'init', __CLASS__ . '::disable_litespeed_esi', 4 ); // temporarily comment out this line for backward compatibility
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
if (isset($_GET['action']) && $_GET['action'] === 'elementor') {
[23] Fix | Delete
do_action('litespeed_disable_all', 'elementor edit mode');
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
if (!empty($_SERVER['HTTP_REFERER']) && strpos($_SERVER['HTTP_REFERER'], 'action=elementor')) {
[27] Fix | Delete
if (!empty($_REQUEST['actions'])) {
[28] Fix | Delete
$json = json_decode(stripslashes($_REQUEST['actions']), true);
[29] Fix | Delete
// Debug2::debug( '3rd Elementor', $json );
[30] Fix | Delete
if (
[31] Fix | Delete
!empty($json['save_builder']['action']) &&
[32] Fix | Delete
$json['save_builder']['action'] == 'save_builder' &&
[33] Fix | Delete
!empty($json['save_builder']['data']['status']) &&
[34] Fix | Delete
$json['save_builder']['data']['status'] == 'publish'
[35] Fix | Delete
) {
[36] Fix | Delete
return; // Save post, don't disable all in case we will allow fire crawler right away after purged
[37] Fix | Delete
}
[38] Fix | Delete
}
[39] Fix | Delete
do_action('litespeed_disable_all', 'elementor edit mode in HTTP_REFERER');
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
public static function disable_litespeed_esi()
[44] Fix | Delete
{
[45] Fix | Delete
define('LITESPEED_ESI_OFF', true);
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function