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.../plugins/sitepres.../inc/upgrade-...
File: upgrade-2.3.0.php
<?php
[0] Fix | Delete
[1] Fix | Delete
$icl_rc_widget = get_option('widget_recent_comments');
[2] Fix | Delete
if(!empty($icl_rc_widget)){
[3] Fix | Delete
$rc_widgets = get_option('widget_recent-comments');
[4] Fix | Delete
if(!empty($rc_widgets)){
[5] Fix | Delete
$rc_widgets[] = $icl_rc_widget;
[6] Fix | Delete
}else{
[7] Fix | Delete
$rc_widgets = array(
[8] Fix | Delete
'1' => $icl_rc_widget,
[9] Fix | Delete
'_multiwidget' => 1
[10] Fix | Delete
);
[11] Fix | Delete
[12] Fix | Delete
}
[13] Fix | Delete
update_option('widget_recent-comments', $rc_widgets);
[14] Fix | Delete
delete_option('widget_recent_comments');
[15] Fix | Delete
[16] Fix | Delete
}
[17] Fix | Delete
$wpdb->query("ALTER TABLE {$wpdb->prefix}icl_string_translations MODIFY COLUMN value TEXT NULL DEFAULT NULL");
[18] Fix | Delete
[19] Fix | Delete
$wpdb->query("ALTER TABLE {$wpdb->prefix}icl_string_translations ADD translator_id bigint(20) NULL DEFAULT NULL, ADD translation_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP");
[20] Fix | Delete
[21] Fix | Delete
// Disable the auto registration of strings if we are upgrading to 2.3.0
[22] Fix | Delete
$iclsettings = get_option('icl_sitepress_settings');
[23] Fix | Delete
$iclsettings['st']['icl_st_auto_reg'] = 'disable';
[24] Fix | Delete
update_option('icl_sitepress_settings', $iclsettings);
[25] Fix | Delete
[26] Fix | Delete
// The icl_translators_cached format has change at some point.
[27] Fix | Delete
// Let's clear the cache so it gets rebuilt.
[28] Fix | Delete
delete_option($wpdb->prefix . 'icl_translators_cached');
[29] Fix | Delete
delete_option($wpdb->prefix . 'icl_non_translators_cached');
[30] Fix | Delete
[31] Fix | Delete
[32] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function