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.../plugins/advanced.../modules/privacy/admin/assets/js
File: privacy.js
;(function ($) {
[0] Fix | Delete
var $cookieName = $('[name="' + window.advads_privacy.option_key + '[custom-cookie-name]'),
[1] Fix | Delete
$method = $('[name="' + window.advads_privacy.option_key + '[consent-method]"]:checked');
[2] Fix | Delete
[3] Fix | Delete
// set required if radios change.
[4] Fix | Delete
$('[name="' + window.advads_privacy.option_key + '[consent-method]"]').on('change', function () {
[5] Fix | Delete
$method = $('[name="' + window.advads_privacy.option_key + '[consent-method]"]:checked');
[6] Fix | Delete
$cookieName.prop('required', $method.val() === 'custom');
[7] Fix | Delete
});
[8] Fix | Delete
[9] Fix | Delete
// if enabled status changes, set required.
[10] Fix | Delete
$('[name="' + window.advads_privacy.option_key + '[enabled]"]').on('change', function () {
[11] Fix | Delete
$cookieName.prop('required', ($(this).is(':checked') ? $method.val() === 'custom' : false));
[12] Fix | Delete
});
[13] Fix | Delete
})(jQuery);
[14] Fix | Delete
[15] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function