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/core/componen.../data
File: ScriptReplacer.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/**
[2] Fix | Delete
* Utility class for replacing scripts in a string.
[3] Fix | Delete
*
[4] Fix | Delete
* @since 3.18.5
[5] Fix | Delete
*
[6] Fix | Delete
* @package ET\Core\Data
[7] Fix | Delete
*/
[8] Fix | Delete
class ET_Core_Data_ScriptReplacer {
[9] Fix | Delete
[10] Fix | Delete
private $_map = array();
[11] Fix | Delete
[12] Fix | Delete
public function replace( $matches ) {
[13] Fix | Delete
$script = $matches[0];
[14] Fix | Delete
$id = md5( $script );
[15] Fix | Delete
$this->_map[ $id ] = $script;
[16] Fix | Delete
return $id;
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
public function map() {
[20] Fix | Delete
return $this->_map;
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function