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/wordfenc.../lib
File: menu_firewall_blocking_options.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
[2] Fix | Delete
$backPage = new wfPage(wfPage::PAGE_BLOCKING);
[3] Fix | Delete
if (isset($_GET['source']) && wfPage::isValidPage($_GET['source'])) {
[4] Fix | Delete
$backPage = new wfPage($_GET['source']);
[5] Fix | Delete
}
[6] Fix | Delete
?>
[7] Fix | Delete
<script type="application/javascript">
[8] Fix | Delete
(function($) {
[9] Fix | Delete
$(function() {
[10] Fix | Delete
document.title = "<?php esc_attr_e('Blocking Options', 'wordfence'); ?>" + " \u2039 " + WFAD.basePageName;
[11] Fix | Delete
[12] Fix | Delete
//Hash-based option block linking
[13] Fix | Delete
if (window.location.hash) {
[14] Fix | Delete
var hashes = WFAD.parseHashes();
[15] Fix | Delete
var hash = hashes[hashes.length - 1];
[16] Fix | Delete
var block = $('.wf-block[data-persistence-key="' + hash + '"]');
[17] Fix | Delete
if (block) {
[18] Fix | Delete
if (!block.hasClass('wf-active')) {
[19] Fix | Delete
block.find('.wf-block-content').slideDown({
[20] Fix | Delete
always: function() {
[21] Fix | Delete
block.addClass('wf-active');
[22] Fix | Delete
$('html, body').animate({
[23] Fix | Delete
scrollTop: block.offset().top - 100
[24] Fix | Delete
}, 1000);
[25] Fix | Delete
}
[26] Fix | Delete
});
[27] Fix | Delete
[28] Fix | Delete
WFAD.ajax('wordfence_saveDisclosureState', {name: block.data('persistenceKey'), state: true}, function() {});
[29] Fix | Delete
}
[30] Fix | Delete
else {
[31] Fix | Delete
$('html, body').animate({
[32] Fix | Delete
scrollTop: block.offset().top - 100
[33] Fix | Delete
}, 1000);
[34] Fix | Delete
}
[35] Fix | Delete
history.replaceState('', document.title, window.location.pathname + window.location.search);
[36] Fix | Delete
}
[37] Fix | Delete
}
[38] Fix | Delete
});
[39] Fix | Delete
})(jQuery);
[40] Fix | Delete
</script>
[41] Fix | Delete
<div class="wf-options-controls">
[42] Fix | Delete
<div class="wf-row">
[43] Fix | Delete
<div class="wf-col-xs-12">
[44] Fix | Delete
<?php
[45] Fix | Delete
echo wfView::create('options/block-controls', array(
[46] Fix | Delete
'backLink' => $backPage->url(),
[47] Fix | Delete
'backLabelHTML' => wp_kses(sprintf(
[48] Fix | Delete
/* translators: Page title/label. */
[49] Fix | Delete
__('<span class="wf-hidden-xs">Back to </span>%s', 'wordfence'), $backPage->label()), array('span'=>array('class'=>array()))),
[50] Fix | Delete
'restoreDefaultsSection' => wfConfig::OPTIONS_TYPE_BLOCKING,
[51] Fix | Delete
'restoreDefaultsMessage' => __('Are you sure you want to restore the default Blocking settings? This will undo any custom changes you have made to the options on this page. Any existing blocks will be preserved.', 'wordfence'),
[52] Fix | Delete
))->render();
[53] Fix | Delete
?>
[54] Fix | Delete
</div>
[55] Fix | Delete
</div>
[56] Fix | Delete
</div>
[57] Fix | Delete
<div class="wf-options-controls-spacer"></div>
[58] Fix | Delete
<?php
[59] Fix | Delete
if (!wfOnboardingController::shouldShowAttempt3() && wfConfig::get('touppPromptNeeded')) {
[60] Fix | Delete
echo wfView::create('gdpr/disabled-overlay')->render();
[61] Fix | Delete
echo wfView::create('gdpr/banner')->render();
[62] Fix | Delete
}
[63] Fix | Delete
?>
[64] Fix | Delete
<div class="wrap wordfence">
[65] Fix | Delete
<div class="wf-container-fluid">
[66] Fix | Delete
<?php
[67] Fix | Delete
if (function_exists('network_admin_url') && is_multisite()) {
[68] Fix | Delete
$firewallURL = network_admin_url('admin.php?page=WordfenceWAF#top#waf');
[69] Fix | Delete
$blockingURL = network_admin_url('admin.php?page=WordfenceWAF#top#blocking');
[70] Fix | Delete
}
[71] Fix | Delete
else {
[72] Fix | Delete
$firewallURL = admin_url('admin.php?page=WordfenceWAF#top#waf');
[73] Fix | Delete
$blockingURL = admin_url('admin.php?page=WordfenceWAF#top#blocking');
[74] Fix | Delete
}
[75] Fix | Delete
?>
[76] Fix | Delete
<div class="wf-row">
[77] Fix | Delete
<div class="wf-col-xs-12">
[78] Fix | Delete
<div class="wp-header-end"></div>
[79] Fix | Delete
</div>
[80] Fix | Delete
</div>
[81] Fix | Delete
<div class="wf-row">
[82] Fix | Delete
<div class="<?php echo wfStyle::contentClasses(); ?>">
[83] Fix | Delete
<div id="waf-options" class="wf-fixed-tab-content">
[84] Fix | Delete
<?php
[85] Fix | Delete
echo wfView::create('common/section-title', array(
[86] Fix | Delete
'title' => __('Blocking Options', 'wordfence'),
[87] Fix | Delete
'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_FIREWALL_BLOCKING),
[88] Fix | Delete
'helpLabelHTML' => wp_kses(__('Learn more<span class="wf-hidden-xs"> about Blocking</span>', 'wordfence'), array('span'=>array('class'=>array()))),
[89] Fix | Delete
'showIcon' => true,
[90] Fix | Delete
))->render();
[91] Fix | Delete
?>
[92] Fix | Delete
<div class="wf-row">
[93] Fix | Delete
<div class="wf-col-xs-12">
[94] Fix | Delete
<div class="wf-block wf-always-active">
[95] Fix | Delete
<div class="wf-block-header">
[96] Fix | Delete
<div class="wf-block-header-content">
[97] Fix | Delete
<div class="wf-block-title">
[98] Fix | Delete
<strong><?php esc_html_e('General', 'wordfence'); ?></strong>
[99] Fix | Delete
</div>
[100] Fix | Delete
<div class="wf-block-header-action"></div>
[101] Fix | Delete
</div>
[102] Fix | Delete
</div>
[103] Fix | Delete
<div class="wf-block-content">
[104] Fix | Delete
<ul class="wf-block-list">
[105] Fix | Delete
<li>
[106] Fix | Delete
<?php
[107] Fix | Delete
echo wfView::create('options/option-toggled', array(
[108] Fix | Delete
'optionName' => 'displayTopLevelBlocking',
[109] Fix | Delete
'enabledValue' => 1,
[110] Fix | Delete
'disabledValue' => 0,
[111] Fix | Delete
'value' => wfConfig::get('displayTopLevelBlocking') ? 1 : 0,
[112] Fix | Delete
'title' => __('Display Blocking menu option', 'wordfence'),
[113] Fix | Delete
))->render();
[114] Fix | Delete
?>
[115] Fix | Delete
</li>
[116] Fix | Delete
</ul>
[117] Fix | Delete
</div>
[118] Fix | Delete
</div>
[119] Fix | Delete
</div>
[120] Fix | Delete
</div> <!-- end general options -->
[121] Fix | Delete
<?php
[122] Fix | Delete
echo wfView::create('blocking/options-group-advanced-country', array(
[123] Fix | Delete
'stateKey' => 'blocking-options-country',
[124] Fix | Delete
'collapseable' => false,
[125] Fix | Delete
))->render();
[126] Fix | Delete
?>
[127] Fix | Delete
</div> <!-- end blocking options block -->
[128] Fix | Delete
</div> <!-- end content block -->
[129] Fix | Delete
</div> <!-- end row -->
[130] Fix | Delete
</div> <!-- end container -->
[131] Fix | Delete
</div>
[132] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function