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/wordfenc.../views/blocking
File: option-bypass-cookie.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
?>
[2] Fix | Delete
<ul id="wf-option-cbl-bypassViewURL" class="wf-option wf-option-bypass-cookie">
[3] Fix | Delete
<li class="wf-option-spacer"></li>
[4] Fix | Delete
<li class="wf-option-content">
[5] Fix | Delete
<ul>
[6] Fix | Delete
<li class="wf-option-title"><?php esc_html_e('Bypass Cookie', 'wordfence'); ?> <a href="<?php echo wfSupportController::esc_supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING_BYPASS_COOKIE); ?>" target="_blank" rel="noopener noreferrer" class="wf-inline-help"><i class="wf-fa wf-fa-question-circle-o" aria-hidden="true"></i><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></li>
[7] Fix | Delete
<li class="wf-option-fields">
[8] Fix | Delete
<table class="wf-full-width">
[9] Fix | Delete
<tr>
[10] Fix | Delete
<td class="wf-right wf-padding-add-right"><?php esc_html_e('If user who is allowed to access the site views the relative URL', 'wordfence'); ?></td>
[11] Fix | Delete
<td class="wf-option-text"><input id="wf-bypass-view-url" type="text" value="<?php echo esc_attr(wfConfig::get('cbl_bypassViewURL')); ?>" placeholder="<?php esc_attr_e('/set-country-bypass/', 'wordfence'); ?>" data-option="cbl_bypassViewURL" data-original-value="<?php echo esc_attr(wfConfig::get('cbl_bypassViewURL')); ?>"></td>
[12] Fix | Delete
</tr>
[13] Fix | Delete
<tr>
[14] Fix | Delete
<td colspan="2" class="wf-right wf-padding-add-top-small"><?php esc_html_e('then set a cookie that will bypass country blocking in future in case that user hits the site from a blocked country.', 'wordfence'); ?></td>
[15] Fix | Delete
</tr>
[16] Fix | Delete
</table>
[17] Fix | Delete
<script type="application/javascript">
[18] Fix | Delete
(function($) {
[19] Fix | Delete
$(function() {
[20] Fix | Delete
$('#wf-bypass-view-url').on('change paste keyup', function() {
[21] Fix | Delete
setTimeout(function() {
[22] Fix | Delete
var option = $('#wf-bypass-view-url').data('option');
[23] Fix | Delete
var value = $('#wf-bypass-view-url').val();
[24] Fix | Delete
[25] Fix | Delete
var originalValue = $('#wf-bypass-view-url').data('originalValue');
[26] Fix | Delete
if (originalValue == value) {
[27] Fix | Delete
delete WFAD.pendingChanges[option];
[28] Fix | Delete
}
[29] Fix | Delete
else {
[30] Fix | Delete
WFAD.pendingChanges[option] = value;
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
WFAD.updatePendingChanges();
[34] Fix | Delete
}, 4);
[35] Fix | Delete
});
[36] Fix | Delete
[37] Fix | Delete
$(window).on('wfOptionsReset', function() {
[38] Fix | Delete
$('#wf-bypass-view-url').each(function() {
[39] Fix | Delete
var originalValue = $(this).data('originalValue');
[40] Fix | Delete
$(this).val(originalValue);
[41] Fix | Delete
});
[42] Fix | Delete
});
[43] Fix | Delete
});
[44] Fix | Delete
})(jQuery);
[45] Fix | Delete
</script>
[46] Fix | Delete
</li>
[47] Fix | Delete
</ul>
[48] Fix | Delete
</li>
[49] Fix | Delete
</ul>
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function