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-textarea.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a text area option.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $textOptionName, $textValue, and $title to be defined. $helpLink, $premium, and $noSpacer may also be defined.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $textOptionName The option name for the text field.
[7] Fix | Delete
* @var string $textValue The current value of $textOptionName.
[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
* @var bool $noSpacer If defined and truthy, the spacer will be omitted.
[12] Fix | Delete
*/
[13] Fix | Delete
[14] Fix | Delete
if (!isset($subtitleHTML) && isset($subtitle)) {
[15] Fix | Delete
$subtitleHTML = esc_html($subtitle);
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
if (!isset($subtitlePosition)) { //May be 'title' to appear below the title or 'value' to appear below the field
[19] Fix | Delete
$subtitlePosition = 'title';
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
$id = 'wf-option-' . preg_replace('/[^a-z0-9]/i', '-', $textOptionName);
[23] Fix | Delete
?>
[24] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" class="wf-option wf-option-textarea<?php if (!wfConfig::p() && isset($premium) && $premium) { echo ' wf-option-premium'; } ?>" data-text-option="<?php echo esc_attr($textOptionName); ?>" data-original-text-value="<?php echo esc_attr($textValue); ?>">
[25] Fix | Delete
<?php if (!isset($noSpacer) || !$noSpacer): ?>
[26] Fix | Delete
<li class="wf-option-spacer"></li>
[27] Fix | Delete
<?php endif; ?>
[28] Fix | Delete
<li class="wf-option-content">
[29] Fix | Delete
<ul>
[30] Fix | Delete
<li class="wf-option-title<?php if (isset($alignTitle)) { echo $alignTitle == 'top' ? ' wf-option-title-top' : ($alignTitle == 'bottom' ? 'wf-option-title-bottom' : ''); } ?>">
[31] Fix | Delete
<?php if (isset($subtitleHTML) && $subtitlePosition == 'title'): ?>
[32] Fix | Delete
<ul class="wf-flex-vertical wf-flex-align-left">
[33] Fix | Delete
<li>
[34] Fix | Delete
<?php endif; ?>
[35] 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>'; } ?>
[36] Fix | Delete
<?php if (isset($subtitleHTML) && $subtitlePosition == 'title'): ?>
[37] Fix | Delete
</li>
[38] Fix | Delete
<li class="wf-option-subtitle"><?php echo $subtitleHTML; ?></li>
[39] Fix | Delete
</ul>
[40] Fix | Delete
<?php endif; ?>
[41] Fix | Delete
</li>
[42] Fix | Delete
<li class="wf-option-textarea">
[43] Fix | Delete
<?php if (isset($subtitleHTML) && $subtitlePosition == 'value'): ?>
[44] Fix | Delete
<ul class="wf-flex-vertical wf-flex-align-left wf-flex-full-width">
[45] Fix | Delete
<li>
[46] Fix | Delete
<?php endif; ?>
[47] Fix | Delete
<textarea<?php echo (!(!wfConfig::p() && isset($premium) && $premium) ? '' : ' disabled'); ?> aria-labelledby="<?php echo esc_attr($id); ?>-label"><?php echo esc_html($textValue); ?></textarea>
[48] Fix | Delete
<?php if (isset($subtitleHTML) && $subtitlePosition == 'value'): ?>
[49] Fix | Delete
</li>
[50] Fix | Delete
<li class="wf-option-subtitle"><?php echo $subtitleHTML; ?></li>
[51] Fix | Delete
</ul>
[52] Fix | Delete
<?php endif; ?>
[53] Fix | Delete
</li>
[54] Fix | Delete
</ul>
[55] Fix | Delete
</li>
[56] Fix | Delete
</ul>
[57] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function