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/waf
File: option-rate-limit.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a rate limit option with popup menus for limit value and action selections.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $rateOptionName, $rateOptions, $rateValue, $actionOptionName, $actionOptions, $actionValue, and $title to be defined. $helpLink may also be defined.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $rateOptionName The option name for the rate portion.
[7] Fix | Delete
* @var array $rateOptions An array of the possible values for $rateOptionName. The array is of the format array(array('value' => <the internal value>, 'label' => <a display label>), ...)
[8] Fix | Delete
* @var string $rateValue The current value of $rateOptionName.
[9] Fix | Delete
* @var int $lowValue The value below which the false positive warning should begin showing
[10] Fix | Delete
* @var string $actionOptionName The option name for the rate portion.
[11] Fix | Delete
* @var array $actionOptions An array of the possible values for $actionOptionName. The array is of the format array(array('value' => <the internal value>, 'label' => <a display label>), ...)
[12] Fix | Delete
* @var string $actionValue The current value of $actionOptionName.
[13] Fix | Delete
* @var string $title The title shown for the option.
[14] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page.
[15] Fix | Delete
* @var bool $premium If defined, the option will be tagged as premium only and not allow its value to change for free users.
[16] Fix | Delete
*/
[17] Fix | Delete
[18] Fix | Delete
$rateID = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $rateOptionName);
[19] Fix | Delete
$actionID = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $actionOptionName);
[20] Fix | Delete
?>
[21] Fix | Delete
<ul class="wf-option wf-option-rate-limit<?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' wf-option-premium'; } ?>" data-rate-option="<?php echo esc_attr($rateOptionName); ?>" data-original-rate-value="<?php echo esc_attr($rateValue); ?>" data-action-option="<?php echo esc_attr($actionOptionName); ?>" data-original-action-value="<?php echo esc_attr($actionValue); ?>" data-low-value="<?php echo (int) $lowValue; ?>">
[22] Fix | Delete
<li class="wf-option-spacer"></li>
[23] Fix | Delete
<li class="wf-option-content">
[24] Fix | Delete
<ul>
[25] Fix | Delete
<li class="wf-option-title"><span id="<?php echo esc_attr($rateID); ?>-label"><?php echo esc_html($title); ?></span><?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' <a href="https://www.wordfence.com/gnl1optionUpgrade/wordfence-signup/" target="_blank" rel="noopener noreferrer" class="wf-premium-link">' . esc_html__('Premium Feature', 'wordfence') . '</a>'; } ?><?php if (isset($helpLink)) { echo ' <a href="' . esc_attr($helpLink) . '" 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"> (' . esc_html__('opens in new tab', 'wordfence') . ')</span></a>'; } ?></li>
[26] Fix | Delete
<li class="wf-option-select wf-left-xs wf-padding-add-top-xs-small wf-nowrap">
[27] Fix | Delete
<select<?php echo (!(!wfConfig::p() && isset($premium) && $premium) ? '' : ' disabled'); ?> id="<?php echo esc_attr($rateID); ?>" class="wf-rate-limit-rate" aria-labelledby="<?php echo esc_attr($rateID); ?>-label">
[28] Fix | Delete
<?php foreach ($rateOptions as $o): ?>
[29] Fix | Delete
<option class="wf-option-select-option" value="<?php echo esc_attr($o['value']); ?>"<?php if ($o['value'] == $rateValue) { echo ' selected'; } ?>><?php echo esc_html($o['label']); ?></option>
[30] Fix | Delete
<?php endforeach; ?>
[31] Fix | Delete
</select>
[32] Fix | Delete
<span class="wf-padding-add-left-small wf-padding-add-right-small wf-padding-add-top-xs-small wf-padding-add-bottom-xs-small wf-inline-block-xs"><?php esc_html_e('then', 'wordfence'); ?></span>
[33] Fix | Delete
<select<?php echo (!(!wfConfig::p() && isset($premium) && $premium) ? '' : ' disabled'); ?> id="<?php echo esc_attr($actionID); ?>" class="wf-rate-limit-action" aria-labelledby="<?php echo esc_attr($rateID); ?>-label">
[34] Fix | Delete
<?php foreach ($actionOptions as $o): ?>
[35] Fix | Delete
<option class="wf-option-select-option" value="<?php echo esc_attr($o['value']); ?>"<?php if ($o['value'] == $actionValue) { echo ' selected'; } ?>><?php echo esc_html($o['label']); ?></option>
[36] Fix | Delete
<?php endforeach; ?>
[37] Fix | Delete
</select>
[38] Fix | Delete
<div class="wf-rate-limit-warning"><div class="wf-inline-notice"><i class="wf-fa wf-fa-exclamation-triangle" aria-hidden="true"></i><span>Very strict. May cause false positives.</span></div></div>
[39] Fix | Delete
</li>
[40] Fix | Delete
</ul>
[41] Fix | Delete
</li>
[42] Fix | Delete
</ul>
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function