Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/litespee.../thirdpar...
File: gravity-forms.cls.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The Third Party integration with Gravity Forms.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 4.1.0
[4] Fix | Delete
* @package LiteSpeed
[5] Fix | Delete
* @subpackage LiteSpeed_Cache\Thirdparty
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
namespace LiteSpeed\Thirdparty;
[9] Fix | Delete
[10] Fix | Delete
defined('WPINC') || exit();
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* Gravity Forms compatibility hooks for LiteSpeed Cache.
[14] Fix | Delete
*/
[15] Fix | Delete
class Gravity_Forms {
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Check if GF is enabled and disable LSCWP on gf-download and gf-signature URI.
[19] Fix | Delete
*
[20] Fix | Delete
* Note: Query params are only read to detect special Gravity Forms endpoints.
[21] Fix | Delete
* Nonce verification is not applicable here as no privileged action is performed.
[22] Fix | Delete
*
[23] Fix | Delete
* @since 4.1.0 #900899 #827184
[24] Fix | Delete
* @return void
[25] Fix | Delete
*/
[26] Fix | Delete
public static function preload() {
[27] Fix | Delete
if (class_exists('GFCommon')) {
[28] Fix | Delete
$gf_download = isset($_GET['gf-download']) ? sanitize_text_field(wp_unslash($_GET['gf-download'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
[29] Fix | Delete
$gf_signature = isset($_GET['gf-signature']) ? sanitize_text_field(wp_unslash($_GET['gf-signature'])) : ''; // phpcs:ignore WordPress.Security.NonceVerification.Recommended
[30] Fix | Delete
[31] Fix | Delete
if ('' !== $gf_download || '' !== $gf_signature) {
[32] Fix | Delete
do_action('litespeed_disable_all', 'Stopped for Gravity Form');
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function