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: FullwidthHeader2.php
<?php
[0] Fix | Delete
class ET_Builder_Module_Settings_Migration_Fullwidth_Header2 extends ET_Builder_Module_Settings_Migration {
[1] Fix | Delete
[2] Fix | Delete
public $version = '3.0.102';
[3] Fix | Delete
[4] Fix | Delete
public function get_fields() {
[5] Fix | Delete
return array(
[6] Fix | Delete
'text_orientation' => array(
[7] Fix | Delete
'affected_fields' => array(
[8] Fix | Delete
'text_orientation' => $this->get_modules(),
[9] Fix | Delete
),
[10] Fix | Delete
'map' => array(
[11] Fix | Delete
'justified' => 'center',
[12] Fix | Delete
),
[13] Fix | Delete
),
[14] Fix | Delete
);
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
public function get_modules() {
[18] Fix | Delete
$modules = array( 'et_pb_fullwidth_header' );
[19] Fix | Delete
[20] Fix | Delete
return $modules;
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
public function migrate( $field_name, $current_value, $module_slug, $saved_value, $saved_field_name, $attrs, $content, $module_address ) {
[24] Fix | Delete
// Migrate Fullwidth Header's text orientation justified to center
[25] Fix | Delete
if ( 'et_pb_fullwidth_header' === $module_slug && 'text_orientation' === $field_name && isset( $this->fields['text_orientation']['map'][ $current_value ] ) ) {
[26] Fix | Delete
return $this->fields['text_orientation']['map'][ $current_value ];
[27] Fix | Delete
}
[28] Fix | Delete
[29] Fix | Delete
return $saved_value;
[30] Fix | Delete
}
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
return new ET_Builder_Module_Settings_Migration_Fullwidth_Header2();
[34] Fix | Delete
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function