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.../views/blocking
File: country-modal.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the country selection modal.
[3] Fix | Delete
*/
[4] Fix | Delete
[5] Fix | Delete
require(WORDFENCE_PATH . 'lib/wfBulkCountries.php'); /** @var array $wfBulkCountries */
[6] Fix | Delete
asort($wfBulkCountries);
[7] Fix | Delete
$letters = '';
[8] Fix | Delete
foreach ($wfBulkCountries as $name) {
[9] Fix | Delete
$l = strtoupper(substr($name, 0, 1));
[10] Fix | Delete
$test = strtoupper(substr($letters, -1));
[11] Fix | Delete
if ($l != $test) {
[12] Fix | Delete
$letters .= $l;
[13] Fix | Delete
}
[14] Fix | Delete
}
[15] Fix | Delete
$letters = str_split($letters);
[16] Fix | Delete
?>
[17] Fix | Delete
<script type="text/x-jquery-template" id="wfTmpl_countrySelector">
[18] Fix | Delete
<div class="wf-modal" id="wf-country-selector">
[19] Fix | Delete
<div class="wf-modal-header">
[20] Fix | Delete
<div class="wf-modal-header-content">
[21] Fix | Delete
<div class="wf-modal-title">
[22] Fix | Delete
<?php esc_html_e('Select Countries to Block from List', 'wordfence'); ?>
[23] Fix | Delete
</div>
[24] Fix | Delete
</div>
[25] Fix | Delete
<div class="wf-modal-header-action">
[26] Fix | Delete
<a href="#" class="wf-btn wf-btn-default wf-btn-callout-subtle wf-countries-shortcut" id="wf-country-selector-block-all" data-shortcut="select" role="button"><?php esc_html_e('Block All', 'wordfence'); ?></a>&nbsp;&nbsp;<a href="#" class="wf-btn wf-btn-default wf-btn-callout-subtle wf-countries-shortcut" id="wf-country-selector-unblock-all" data-shortcut="deselect"><?php esc_html_e('Unblock All', 'wordfence'); ?></a>
[27] Fix | Delete
</div>
[28] Fix | Delete
</div>
[29] Fix | Delete
<div class="wf-modal-content">
[30] Fix | Delete
<ul class="wf-country-selector-controls">
[31] Fix | Delete
<li>
[32] Fix | Delete
<ul class="wf-country-selector-section-options">
[33] Fix | Delete
<?php
[34] Fix | Delete
foreach ($letters as $l) {
[35] Fix | Delete
echo '<li><a href="#" data-letter="' . esc_attr($l) . '" role="button">' . esc_html($l) . '</a></li>';
[36] Fix | Delete
}
[37] Fix | Delete
?>
[38] Fix | Delete
</ul>
[39] Fix | Delete
</li>
[40] Fix | Delete
</ul>
[41] Fix | Delete
<div class="wf-country-selector-outer-wrapper">
[42] Fix | Delete
<div class="wf-country-selector-inner-wrapper">
[43] Fix | Delete
<div class="wf-country-selector-options">
[44] Fix | Delete
<?php
[45] Fix | Delete
$current = '';
[46] Fix | Delete
foreach ($wfBulkCountries as $code => $name) {
[47] Fix | Delete
$test = strtoupper(substr($name, 0, 1));
[48] Fix | Delete
if ($test != $current) {
[49] Fix | Delete
if ($current != '') {
[50] Fix | Delete
echo '</ul>';
[51] Fix | Delete
}
[52] Fix | Delete
$current = $test;
[53] Fix | Delete
?>
[54] Fix | Delete
<ul class="wf-blocked-countries" data-letter="<?php echo esc_attr($current); ?>">
[55] Fix | Delete
<?php
[56] Fix | Delete
}
[57] Fix | Delete
?>
[58] Fix | Delete
<li id="wf-country-option-<?php echo esc_attr(strtolower($code)); ?>" data-country="<?php echo esc_attr($code); ?>"><a href="#" role="button"><?php echo esc_html($name); ?></a></li>
[59] Fix | Delete
<?php
[60] Fix | Delete
}
[61] Fix | Delete
[62] Fix | Delete
if ($current != '') {
[63] Fix | Delete
echo '</ul>';
[64] Fix | Delete
}
[65] Fix | Delete
?>
[66] Fix | Delete
</div>
[67] Fix | Delete
</div>
[68] Fix | Delete
</div>
[69] Fix | Delete
</div>
[70] Fix | Delete
<div class="wf-modal-footer">
[71] Fix | Delete
<ul class="wf-flex-horizontal wf-flex-full-width">
[72] Fix | Delete
<li id="wf-country-selector-count"></li>
[73] Fix | Delete
<li class="wf-right"><a href="#" class="wf-btn wf-btn-default wf-btn-callout-subtle" id="wf-country-selector-cancel" role="button"><?php esc_html_e('Back', 'wordfence'); ?></a>&nbsp;&nbsp;<a href="#" class="wf-btn wf-btn-primary wf-btn-callout-subtle" id="wf-country-selector-confirm"><?php esc_html_e('Save', 'wordfence'); ?></a></li>
[74] Fix | Delete
</ul>
[75] Fix | Delete
</div>
[76] Fix | Delete
</div>
[77] Fix | Delete
</script>
[78] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function