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.../modules/login-se.../views/options
File: option-textarea.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_LS_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. Required.
[7] Fix | Delete
* @var string $textValue The current value of $textOptionName. Required.
[8] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $title The title shown for the option. Required.
[9] Fix | Delete
* @var string|\WordfenceLS\Text\Model_HTML $subtitle The title shown for the option. Optional.
[10] Fix | Delete
* @var string $subtitlePosition The position for the subtitle: 'value' for below the value, 'title' for below the title. Optional.
[11] Fix | Delete
* @var string $helpLink If defined, the link to the corresponding external help page. Optional.
[12] Fix | Delete
* @var bool $noSpacer If defined and truthy, the spacer will be omitted. Optional.
[13] Fix | Delete
*/
[14] Fix | Delete
[15] Fix | Delete
if (!isset($subtitlePosition)) { //May be 'title' to appear below the title or 'value' to appear below the field
[16] Fix | Delete
$subtitlePosition = 'title';
[17] Fix | Delete
}
[18] Fix | Delete
[19] Fix | Delete
$id = 'wfls-option-' . preg_replace('/[^a-z0-9]/i', '-', $textOptionName);
[20] Fix | Delete
?>
[21] Fix | Delete
<ul id="<?php echo esc_attr($id); ?>" class="wfls-option wfls-option-textarea" data-text-option="<?php echo esc_attr($textOptionName); ?>" data-original-text-value="<?php echo esc_attr($textValue); ?>">
[22] Fix | Delete
<?php if (!isset($noSpacer) || !$noSpacer): ?>
[23] Fix | Delete
<li class="wfls-option-spacer"></li>
[24] Fix | Delete
<?php endif; ?>
[25] Fix | Delete
<li class="wfls-option-content wfls-no-right">
[26] Fix | Delete
<ul>
[27] Fix | Delete
<li class="wfls-option-title<?php if (isset($alignTitle)) { echo $alignTitle == 'top' ? ' wfls-option-title-top' : ($alignTitle == 'bottom' ? 'wfls-option-title-bottom' : ''); } ?>">
[28] Fix | Delete
<?php if (isset($subtitleHTML) && $subtitlePosition == 'title'): ?>
[29] Fix | Delete
<ul class="wfls-flex-vertical wfls-flex-align-left">
[30] Fix | Delete
<li>
[31] Fix | Delete
<?php endif; ?>
[32] Fix | Delete
<span id="<?php echo esc_attr($id); ?>-label"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($title); ?></span><?php if (isset($helpLink)) { echo ' <a href="' . esc_attr($helpLink) . '" target="_blank" rel="noopener noreferrer" class="wfls-inline-help"><i class="' . (\WordfenceLS\Controller_WordfenceLS::shared()->should_use_core_font_awesome_styles() ? 'wf-fa wf-fa-question-circle-o' : 'wfls-fa wfls-fa-question-circle-o') . '" aria-hidden="true"></i></a>'; } ?>
[33] Fix | Delete
<?php if (isset($subtitle) && $subtitlePosition == 'title'): ?>
[34] Fix | Delete
</li>
[35] Fix | Delete
<li class="wfls-option-subtitle"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($subtitle); ?></li>
[36] Fix | Delete
</ul>
[37] Fix | Delete
<?php endif; ?>
[38] Fix | Delete
</li>
[39] Fix | Delete
<li class="wfls-option-textarea">
[40] Fix | Delete
<?php if (isset($subtitle) && $subtitlePosition == 'value'): ?>
[41] Fix | Delete
<ul class="wfls-flex-vertical wfls-flex-align-left wfls-flex-full-width">
[42] Fix | Delete
<li>
[43] Fix | Delete
<?php endif; ?>
[44] Fix | Delete
<textarea aria-labelledby="<?php echo esc_attr($id); ?>-label"><?php echo esc_html($textValue); ?></textarea>
[45] Fix | Delete
<?php if (isset($subtitle) && $subtitlePosition == 'value'): ?>
[46] Fix | Delete
</li>
[47] Fix | Delete
<li class="wfls-option-subtitle"><?php echo \WordfenceLS\Text\Model_HTML::esc_html($subtitle); ?></li>
[48] Fix | Delete
</ul>
[49] Fix | Delete
<?php endif; ?>
[50] Fix | Delete
</li>
[51] Fix | Delete
</ul>
[52] Fix | Delete
</li>
[53] Fix | Delete
</ul>
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function