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: siteorigin-panels.php
<?php
[0] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[1] Fix | Delete
exit; // Exit if accessed directly
[2] Fix | Delete
}
[3] Fix | Delete
[4] Fix | Delete
/**
[5] Fix | Delete
* Plugin compatibility for siteorigin-panels
[6] Fix | Delete
* @since 0.7 (builder version)
[7] Fix | Delete
* @link https://wordpress.org/plugins/siteorigin-panels/
[8] Fix | Delete
*/
[9] Fix | Delete
class ET_Builder_Plugin_Compat_Siteorigin_Panels extends ET_Builder_Plugin_Compat_Base {
[10] Fix | Delete
/**
[11] Fix | Delete
* Constructor
[12] Fix | Delete
*/
[13] Fix | Delete
function __construct() {
[14] Fix | Delete
$this->plugin_id = "siteorigin-panels/siteorigin-panels.php";
[15] Fix | Delete
$this->init_hooks();
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Hook methods to WordPress
[20] Fix | Delete
* Note: once this issue is fixed in future version, run version_compare() to limit the scope of the hooked fix
[21] Fix | Delete
* Latest plugin version: 2.4.21
[22] Fix | Delete
* @return void
[23] Fix | Delete
*/
[24] Fix | Delete
private function init_hooks() {
[25] Fix | Delete
// Bail if there's no version found
[26] Fix | Delete
if ( ! $this->get_plugin_version() ) {
[27] Fix | Delete
return;
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
// Up to: latest theme version
[31] Fix | Delete
add_action( 'siteorigin_panels_filter_content_enabled', array( $this, 'disable_siteorigin_builder_content' ) );
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* If Divi Builder is used, disable siteorigin builder content alteration
[36] Fix | Delete
* @return bool
[37] Fix | Delete
*/
[38] Fix | Delete
function disable_siteorigin_builder_content( $status ) {
[39] Fix | Delete
global $post;
[40] Fix | Delete
[41] Fix | Delete
if( isset( $post->ID ) && et_pb_is_pagebuilder_used( $post->ID ) ) {
[42] Fix | Delete
$status = false;
[43] Fix | Delete
[44] Fix | Delete
// Remove Site Origin Builder's Live Editor Admin Menu if builder active on current page
[45] Fix | Delete
remove_action( 'admin_bar_menu', 'siteorigin_panels_live_edit_link', 100 );
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
return $status;
[49] Fix | Delete
}
[50] Fix | Delete
}
[51] Fix | Delete
new ET_Builder_Plugin_Compat_Siteorigin_Panels;
[52] Fix | Delete
[53] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function