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-toggled-multiple.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents multiple boolean options under a single heading with a checkbox toggle control for each.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $options and $title to be defined. $options is an array of
[5] Fix | Delete
* array(
[6] Fix | Delete
* 'name' => <option name>,
[7] Fix | Delete
* 'enabledValue' => <value saved if the toggle is enabled>,
[8] Fix | Delete
* 'disabledValue' => <value saved if the toggle is disabled>,
[9] Fix | Delete
* 'value' => <current value of the option>,
[10] Fix | Delete
* 'title' => <title displayed to label the checkbox>
[11] Fix | Delete
* )
[12] Fix | Delete
*
[13] Fix | Delete
* $helpLink may also be defined.
[14] Fix | Delete
*
[15] Fix | Delete
* @var array $options The options shown. The structure is defined above.
[16] Fix | Delete
* @var string $title The overall title shown for the options.
[17] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page.
[18] Fix | Delete
* @var bool $premium If defined, the options will be tagged as premium only and not allow its values to change for free users.
[19] Fix | Delete
*/
[20] Fix | Delete
?>
[21] Fix | Delete
<ul<?php if (isset($id)) { echo ' id="' . esc_attr($id) . '"'; } ?> class="wf-option wf-option-toggled-multiple<?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' wf-option-premium'; } ?>">
[22] Fix | Delete
<?php if (!isset($noSpacer) || !$noSpacer): ?>
[23] Fix | Delete
<li class="wf-option-spacer"></li>
[24] Fix | Delete
<?php endif; ?>
[25] Fix | Delete
<li class="wf-option-content">
[26] Fix | Delete
<ul>
[27] Fix | Delete
<li class="wf-option-title"><?php echo (!empty($title)) ? esc_html($title) : ''; echo (!empty($htmlTitle)) ? wp_kses($htmlTitle, 'post') : ''; ?><?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>
[28] Fix | Delete
<li class="wf-option-checkboxes">
[29] Fix | Delete
<?php
[30] Fix | Delete
foreach ($options as $o):
[31] Fix | Delete
$id = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $o['name']);
[32] Fix | Delete
?>
[33] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" data-option="<?php echo esc_attr($o['name']); ?>" data-enabled-value="<?php echo esc_attr($o['enabledValue']); ?>" data-disabled-value="<?php echo esc_attr($o['disabledValue']); ?>" data-original-value="<?php echo esc_attr($o['value'] == $o['enabledValue'] ? $o['enabledValue'] : $o['disabledValue']); ?>">
[34] Fix | Delete
<li class="wf-option-checkbox<?php echo ($o['value'] == $o['enabledValue'] ? ' wf-checked' : ''); ?>" role="checkbox" aria-checked="<?php echo ($o['value'] == $o['enabledValue'] ? 'true' : 'false'); ?>" tabindex="0" aria-labelledby="<?php echo esc_attr($id); ?>-label"><i class="wf-ion-ios-checkmark-empty" aria-hidden="true"></i></li>
[35] Fix | Delete
<li id="<?php echo esc_attr($id); ?>-label" class="wf-option-title"><?php echo esc_html($o['title']); ?></li>
[36] Fix | Delete
</ul>
[37] Fix | Delete
<?php endforeach; ?>
[38] Fix | Delete
</li>
[39] Fix | Delete
</ul>
[40] Fix | Delete
</li>
[41] Fix | Delete
</ul>
[42] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function