Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/litespee.../thirdpar...
File: caldera-forms.cls.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* The Third Party integration with Caldera Forms.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 3.2.2
[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
* Integration with Caldera Forms to ensure proper nonce handling for cached pages.
[14] Fix | Delete
*/
[15] Fix | Delete
class Caldera_Forms {
[16] Fix | Delete
[17] Fix | Delete
/**
[18] Fix | Delete
* Detects if Caldera Forms is active and registers nonces accordingly.
[19] Fix | Delete
*
[20] Fix | Delete
* Hooks the plugin's frontend nonce pattern into LiteSpeed so cached pages
[21] Fix | Delete
* still validate form submissions.
[22] Fix | Delete
*
[23] Fix | Delete
* @since 3.2.2
[24] Fix | Delete
* @return void
[25] Fix | Delete
*/
[26] Fix | Delete
public static function detect() {
[27] Fix | Delete
if (!defined('CFCORE_VER')) {
[28] Fix | Delete
return;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
// plugins/caldera-forms/classes/render/nonce.php -> class Caldera_Forms_Render_Nonce
[32] Fix | Delete
do_action('litespeed_nonce', 'caldera_forms_front_*');
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function