Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/clone/wp-conte.../themes/Divi/includes/builder/plugin-c...
File: caldera-forms.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit; // Exit if accessed directly
[3] Fix | Delete
}
[4] Fix | Delete
[5] Fix | Delete
/**
[6] Fix | Delete
* Plugin compatibility for Caldera Forms
[7] Fix | Delete
*
[8] Fix | Delete
* @since 3.17.3
[9] Fix | Delete
*
[10] Fix | Delete
* @link https://wordpress.org/plugins/caldera-forms/
[11] Fix | Delete
*/
[12] Fix | Delete
class ET_Builder_Plugin_Compat_Caldera_Forms extends ET_Builder_Plugin_Compat_Base {
[13] Fix | Delete
/**
[14] Fix | Delete
* Constructor
[15] Fix | Delete
*/
[16] Fix | Delete
public function __construct() {
[17] Fix | Delete
$this->plugin_id = 'caldera-forms/caldera-core.php';
[18] Fix | Delete
$this->init_hooks();
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* Hook methods to WordPress
[23] Fix | Delete
*
[24] Fix | Delete
* Latest plugin version: 1.7.6
[25] Fix | Delete
*
[26] Fix | Delete
* @return void
[27] Fix | Delete
*/
[28] Fix | Delete
public function init_hooks() {
[29] Fix | Delete
// Bail if there's no version found
[30] Fix | Delete
if ( ! $this->get_plugin_version() ) {
[31] Fix | Delete
return;
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
if ( ! class_exists( 'Caldera_Forms_Admin' ) ) {
[35] Fix | Delete
return;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
$enabled = array(
[39] Fix | Delete
// phpcs:disable WordPress.Security.NonceVerification.NoNonceVerification
[40] Fix | Delete
'vb' => et_()->array_get( $_GET, 'et_fb' ),
[41] Fix | Delete
'bfb' => et_()->array_get( $_GET, 'et_bfb' ),
[42] Fix | Delete
// phpcs:enable
[43] Fix | Delete
);
[44] Fix | Delete
[45] Fix | Delete
if ( $enabled['vb'] && ! $enabled['bfb'] ) {
[46] Fix | Delete
// Caldera Form custom tinyMCE's button doesn't work in VB, let's remove it.
[47] Fix | Delete
$instance = Caldera_Forms_Admin::get_instance();
[48] Fix | Delete
remove_action( 'media_buttons', array( $instance, 'shortcode_insert_button' ), 11 );
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
}
[52] Fix | Delete
[53] Fix | Delete
new ET_Builder_Plugin_Compat_Caldera_Forms();
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function