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/accelera.../includes/vendor/amp/includes
File: amp-post-template-functions.php
<?php
[0] Fix | Delete
namespace AMPforWP\AMPVendor;
[1] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[2] Fix | Delete
exit;
[3] Fix | Delete
}
[4] Fix | Delete
// Was only available in Customizer > 4.6
[5] Fix | Delete
if ( ! function_exists( 'sanitize_hex_color' ) ) {
[6] Fix | Delete
function sanitize_hex_color( $color ) {
[7] Fix | Delete
if ( '' === $color ) {
[8] Fix | Delete
return '';
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
// 3 or 6 hex digits, or the empty string.
[12] Fix | Delete
if ( preg_match( '|^#([A-Fa-f0-9]{3}){1,2}$|', $color ) ) {
[13] Fix | Delete
return $color;
[14] Fix | Delete
}
[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