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: options-title.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Expects $title (or $titleHTML) and $stateKeys to be defined.
[3] Fix | Delete
*
[4] Fix | Delete
* @var string $title The page title.
[5] Fix | Delete
* @var string $titleHTML The page title as raw HTML
[6] Fix | Delete
* @var string[] $stateKeys An array of state keys that will be controlled by the expand/collapse all button
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
if (isset($title) && !isset($titleHTML)) {
[10] Fix | Delete
$titleHTML = esc_html($title);
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
if (isset($helpLabel) && !isset($helpLabelHTML)) {
[14] Fix | Delete
$helpLabelHTML = esc_html($helpLabel);
[15] Fix | Delete
}
[16] Fix | Delete
[17] Fix | Delete
$expanded = true;
[18] Fix | Delete
foreach ($stateKeys as $k) {
[19] Fix | Delete
if (!wfPersistenceController::shared()->isActive($k)) {
[20] Fix | Delete
$expanded = false;
[21] Fix | Delete
break;
[22] Fix | Delete
}
[23] Fix | Delete
}
[24] Fix | Delete
?>
[25] Fix | Delete
<div class="wf-section-title">
[26] Fix | Delete
<?php if (isset($showIcon) && $showIcon): ?>
[27] Fix | Delete
<div class="wordfence-lock-icon wordfence-icon32 wf-hidden-xs"></div>
[28] Fix | Delete
<?php endif; ?>
[29] Fix | Delete
<h2<?php echo (isset($headerID) ? ' id="' . $headerID . '"' : ''); ?>><?php echo $titleHTML; ?></h2>
[30] Fix | Delete
<div><a href="#" class="wf-toggle-all-sections wf-btn wf-btn-callout-subtle wf-btn-default" data-collapsed-title="<?php esc_attr_e('Expand All', 'wordfence'); ?>" data-expanded-title="<?php esc_attr_e('Collapse All', 'wordfence'); ?>" data-expanded="<?php echo wfUtils::truthyToInt($expanded); ?>" role="button"></a></div>
[31] Fix | Delete
</div>
[32] Fix | Delete
<script type="application/javascript">
[33] Fix | Delete
(function($) {
[34] Fix | Delete
$('.wf-toggle-all-sections').text($('.wf-toggle-all-sections').data('expanded') == 1 ? $('.wf-toggle-all-sections').data('expandedTitle') : $('.wf-toggle-all-sections').data('collapsedTitle'));
[35] Fix | Delete
[36] Fix | Delete
$(function() {
[37] Fix | Delete
$('.wf-toggle-all-sections').on('click', function(e) {
[38] Fix | Delete
e.preventDefault();
[39] Fix | Delete
e.stopPropagation();
[40] Fix | Delete
[41] Fix | Delete
if ($(this).data('expanded') == 1) {
[42] Fix | Delete
$('.wf-block[data-persistence-key]').each(function() {
[43] Fix | Delete
var block = $(this);
[44] Fix | Delete
if (block.hasClass('wf-active')) {
[45] Fix | Delete
block.find('.wf-block-content').slideUp({
[46] Fix | Delete
always: function() {
[47] Fix | Delete
block.removeClass('wf-active');
[48] Fix | Delete
}
[49] Fix | Delete
});
[50] Fix | Delete
}
[51] Fix | Delete
});
[52] Fix | Delete
[53] Fix | Delete
WFAD.ajax('wordfence_saveDisclosureState', {names: <?php echo json_encode($stateKeys) ?>, state: false}, function() {}, function() {}, true);
[54] Fix | Delete
[55] Fix | Delete
$(this).data('expanded', 0);
[56] Fix | Delete
$('.wf-toggle-all-sections').text($('.wf-toggle-all-sections').data('collapsedTitle'));
[57] Fix | Delete
}
[58] Fix | Delete
else {
[59] Fix | Delete
$('.wf-block[data-persistence-key]').each(function() {
[60] Fix | Delete
var block = $(this);
[61] Fix | Delete
if (!block.hasClass('wf-active')) {
[62] Fix | Delete
block.find('.wf-block-content').slideDown({
[63] Fix | Delete
always: function() {
[64] Fix | Delete
block.addClass('wf-active');
[65] Fix | Delete
}
[66] Fix | Delete
});
[67] Fix | Delete
}
[68] Fix | Delete
});
[69] Fix | Delete
[70] Fix | Delete
WFAD.ajax('wordfence_saveDisclosureState', {names: <?php echo json_encode($stateKeys) ?>, state: true}, function() {}, function() {}, true);
[71] Fix | Delete
[72] Fix | Delete
$(this).data('expanded', 1);
[73] Fix | Delete
$('.wf-toggle-all-sections').text($('.wf-toggle-all-sections').data('expandedTitle'));
[74] Fix | Delete
}
[75] Fix | Delete
});
[76] Fix | Delete
});
[77] Fix | Delete
})(jQuery);
[78] Fix | Delete
</script>
[79] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function