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/smart-sl.../Nextend/SmartSli.../Slider/WordPres...
File: PlatformSlider.php
<?php
[0] Fix | Delete
[1] Fix | Delete
[2] Fix | Delete
namespace Nextend\SmartSlider3\Slider\WordPress;
[3] Fix | Delete
[4] Fix | Delete
[5] Fix | Delete
use Automattic\Jetpack\Image_CDN\Image_CDN;
[6] Fix | Delete
use Automattic\Jetpack\Image_CDN\Image_CDN_Core;
[7] Fix | Delete
use Nextend\SmartSlider3\Slider\Base\PlatformSliderBase;
[8] Fix | Delete
[9] Fix | Delete
class PlatformSlider extends PlatformSliderBase {
[10] Fix | Delete
[11] Fix | Delete
public function addCMSFunctions($text) {
[12] Fix | Delete
[13] Fix | Delete
$text = do_shortcode(preg_replace('/\[smartslider3 slider=[0-9]+\]/', '', preg_replace('/\[smartslider3 slider="[0-9]+"\]/', '', $text)));
[14] Fix | Delete
[15] Fix | Delete
return $this->applyFilters($text);
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
private function applyFilters($text) {
[19] Fix | Delete
$text = apply_filters('translate_text', $text);
[20] Fix | Delete
[21] Fix | Delete
if (method_exists('Image_CDN_Core', 'cdn_url')) {
[22] Fix | Delete
$text = Image_CDN::filter_the_content(preg_replace_callback('/data-(desktop|tablet|mobile)="(.*?)"/', array(
[23] Fix | Delete
$this,
[24] Fix | Delete
'deviceImageReplaceCallback'
[25] Fix | Delete
), $text));
[26] Fix | Delete
}
[27] Fix | Delete
[28] Fix | Delete
return $text;
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
public function deviceImageReplaceCallback($matches) {
[32] Fix | Delete
[33] Fix | Delete
if (apply_filters('jetpack_photon_skip_image', false, $matches[2], $matches[2])) {
[34] Fix | Delete
return $matches[0];
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
return 'data-' . $matches[1] . '="' . Image_CDN_Core::cdn_url($matches[2]) . '"';
[38] Fix | Delete
}
[39] Fix | Delete
[40] Fix | Delete
}
[41] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function