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.../themes/Divi/core
File: php_functions.php
<?php
[0] Fix | Delete
[1] Fix | Delete
if ( ! function_exists( 'array_replace' ) ) :
[2] Fix | Delete
function array_replace( array $array, array $array1 ) {
[3] Fix | Delete
$args = func_get_args();
[4] Fix | Delete
$count = func_num_args();
[5] Fix | Delete
[6] Fix | Delete
for ( $i = 0; $i < $count; ++$i ) {
[7] Fix | Delete
if ( is_array( $args[ $i ] ) ) {
[8] Fix | Delete
foreach ( $args[ $i ] as $key => $val ) {
[9] Fix | Delete
$array[ $key ] = $val;
[10] Fix | Delete
}
[11] Fix | Delete
} else {
[12] Fix | Delete
trigger_error( __FUNCTION__ . '(): Argument #' . ( $i + 1 ) . ' is not an array', E_USER_WARNING );
[13] Fix | Delete
return null;
[14] Fix | Delete
}
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
return $array;
[18] Fix | Delete
}
[19] Fix | Delete
endif;
[20] Fix | Delete
[21] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function