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/module/settings/migratio...
File: TeamMemberIconHover.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class ET_Builder_Module_Settings_Migration_TeamMemberIconHover extends ET_Builder_Module_Settings_Migration {
[2] Fix | Delete
[3] Fix | Delete
public $version = '3.12.3';
[4] Fix | Delete
[5] Fix | Delete
public function get_fields() {
[6] Fix | Delete
return array(
[7] Fix | Delete
et_pb_hover_options()->get_hover_field( 'icon_color' ) => array(
[8] Fix | Delete
'affected_fields' => array(
[9] Fix | Delete
'icon_hover_color' => $this->get_modules(),
[10] Fix | Delete
),
[11] Fix | Delete
),
[12] Fix | Delete
et_pb_hover_options()->get_hover_enabled_field( 'icon_color' ) => array(
[13] Fix | Delete
'affected_fields' => array(
[14] Fix | Delete
'icon_hover_color' => $this->get_modules(),
[15] Fix | Delete
),
[16] Fix | Delete
),
[17] Fix | Delete
);
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
public function get_modules() {
[21] Fix | Delete
$modules = array(
[22] Fix | Delete
'et_pb_team_member',
[23] Fix | Delete
);
[24] Fix | Delete
[25] Fix | Delete
return $modules;
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
public function migrate( $field_name, $current_value, $module_slug, $saved_value, $saved_field_name, $attrs, $content, $module_address ) {
[29] Fix | Delete
[30] Fix | Delete
if ( empty( $current_value ) ) {
[31] Fix | Delete
return $saved_value;
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
switch ( $field_name ) {
[35] Fix | Delete
case et_pb_hover_options()->get_hover_field( 'icon_color' ) :
[36] Fix | Delete
return $current_value;
[37] Fix | Delete
case et_pb_hover_options()->get_hover_enabled_field( 'icon_color' ) :
[38] Fix | Delete
return 'on';
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
return $saved_value;
[42] Fix | Delete
}
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
return new ET_Builder_Module_Settings_Migration_TeamMemberIconHover();
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function