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.9.3.php
<?php
[0] Fix | Delete
[1] Fix | Delete
$widget_strings = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}icl_strings WHERE context = 'Widgets' AND name LIKE 'widget body - %'");
[2] Fix | Delete
foreach($widget_strings as $string){
[3] Fix | Delete
$wpdb->update($wpdb->prefix . 'icl_strings', array('name' => 'widget body - ' . md5($string->value)), array('id' => $string->id));
[4] Fix | Delete
}
[5] Fix | Delete
[6] Fix | Delete
$widget_strings = $wpdb->get_results("SELECT * FROM {$wpdb->prefix}icl_strings WHERE context = 'Widgets' AND name LIKE 'widget title - %'");
[7] Fix | Delete
foreach($widget_strings as $string){
[8] Fix | Delete
$wpdb->update($wpdb->prefix . 'icl_strings', array('name' => 'widget title - ' . md5($string->value)), array('id' => $string->id));
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
[12] Fix | Delete
// Add a new `language_context` index to icl_strings table
[13] Fix | Delete
$sql = "ALTER TABLE `{$wpdb->prefix}icl_strings` ADD INDEX `language_context` ( `context` , `language` )";
[14] Fix | Delete
$wpdb->query($sql);
[15] Fix | Delete
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function