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/options
File: option-token.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents an option with a token field for value entry.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $tokenOptionName, $tokenValue, and $title to be defined. $helpLink may also be defined.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $tokenOptionName The option name.
[7] Fix | Delete
* @var array $tokenValue The current value of $tokenOptionName. It will be JSON-encoded as an array of strings.
[8] Fix | Delete
* @var string $title The title shown for the option.
[9] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page.
[10] 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.
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
$id = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $tokenOptionName);
[14] Fix | Delete
?>
[15] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" class="wf-option wf-option-token<?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' wf-option-premium'; } ?>" data-token-option="<?php echo esc_attr($tokenOptionName); ?>" data-original-token-value="<?php echo esc_attr(json_encode($tokenValue)); ?>">
[16] Fix | Delete
<li class="wf-option-spacer"></li>
[17] Fix | Delete
<li class="wf-flex-vertical wf-flex-align-left">
[18] Fix | Delete
<div class="wf-option-title">
[19] Fix | Delete
<?php if (isset($subtitle)): ?>
[20] Fix | Delete
<ul class="wf-flex-vertical wf-flex-align-left">
[21] Fix | Delete
<li>
[22] Fix | Delete
<?php endif; ?>
[23] Fix | Delete
<span id="<?php echo esc_attr($id); ?>-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>'; } ?>
[24] Fix | Delete
<?php if (isset($subtitle)): ?>
[25] Fix | Delete
</li>
[26] Fix | Delete
<li class="wf-option-subtitle"><?php echo esc_html($subtitle); ?></li>
[27] Fix | Delete
</ul>
[28] Fix | Delete
<?php endif; ?>
[29] Fix | Delete
</div>
[30] Fix | Delete
<select multiple<?php echo (!(!wfConfig::p() && isset($premium) && $premium) ? '' : ' disabled'); ?> aria-labelledby="<?php echo esc_attr($id); ?>-label">
[31] Fix | Delete
<?php foreach ($tokenValue as $o): ?>
[32] Fix | Delete
<option value="<?php echo esc_attr($o); ?>" selected><?php echo esc_html($o); ?></option>
[33] Fix | Delete
<?php endforeach; ?>
[34] Fix | Delete
</select>
[35] Fix | Delete
<div class="wf-option-token-tags"></div>
[36] Fix | Delete
</li>
[37] Fix | Delete
</ul>
[38] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function