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/wp-conte.../themes/Divi/includes/builder
File: class-et-builder-plugin-compat-base.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
* Base class for plugin compatibility file
[6] Fix | Delete
* @since 0.7 (builder version)
[7] Fix | Delete
*/
[8] Fix | Delete
class ET_Builder_Plugin_Compat_Base {
[9] Fix | Delete
public $plugin_id;
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Get plugin dir path based on plugin_id
[13] Fix | Delete
* @return sting
[14] Fix | Delete
*/
[15] Fix | Delete
function get_plugin_dir_path() {
[16] Fix | Delete
return WP_PLUGIN_DIR . '/' . $this->plugin_id;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Get plugin data based on initialized plugin_id
[21] Fix | Delete
* @return array
[22] Fix | Delete
*/
[23] Fix | Delete
function get_plugin_data() {
[24] Fix | Delete
return get_plugin_data( $this->get_plugin_dir_path(), false );
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
/**
[28] Fix | Delete
* Get plugin version based on initialized plugin_id
[29] Fix | Delete
* @return string
[30] Fix | Delete
*/
[31] Fix | Delete
function get_plugin_version() {
[32] Fix | Delete
$plugin_data = $this->get_plugin_data();
[33] Fix | Delete
[34] Fix | Delete
if ( ! isset( $plugin_data['Version'] ) ) {
[35] Fix | Delete
return false;
[36] Fix | Delete
}
[37] Fix | Delete
[38] Fix | Delete
return $plugin_data['Version'];
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function