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/dashboar...
File: options-group-dashboard.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the Dashboard Notification Options group.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $stateKey.
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $stateKey The key under which the collapse state is stored.
[7] Fix | Delete
* @var bool $collapseable If defined, specifies whether or not this grouping can be collapsed. Defaults to true.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
if (!isset($collapseable)) {
[11] Fix | Delete
$collapseable = true;
[12] Fix | Delete
}
[13] Fix | Delete
?>
[14] Fix | Delete
<div class="wf-row">
[15] Fix | Delete
<div class="wf-col-xs-12">
[16] Fix | Delete
<div class="wf-block<?php if (!$collapseable) { echo ' wf-always-active'; } else { echo (wfPersistenceController::shared()->isActive($stateKey) ? ' wf-active' : ''); } ?>" data-persistence-key="<?php echo esc_attr($stateKey); ?>">
[17] Fix | Delete
<div class="wf-block-header">
[18] Fix | Delete
<div class="wf-block-header-content">
[19] Fix | Delete
<div class="wf-block-title">
[20] Fix | Delete
<strong><?php esc_html_e('Dashboard Notification Options', 'wordfence'); ?></strong>
[21] Fix | Delete
</div>
[22] Fix | Delete
<?php if ($collapseable): ?><div class="wf-block-header-action"><div class="wf-block-header-action-disclosure" role="checkbox" aria-checked="<?php echo (wfPersistenceController::shared()->isActive($stateKey) ? 'true' : 'false'); ?>" tabindex="0"></div></div><?php endif; ?>
[23] Fix | Delete
</div>
[24] Fix | Delete
</div>
[25] Fix | Delete
<div class="wf-block-content">
[26] Fix | Delete
<ul class="wf-block-list">
[27] Fix | Delete
<li>
[28] Fix | Delete
<?php
[29] Fix | Delete
echo wfView::create('options/option-toggled', array(
[30] Fix | Delete
'optionName' => 'notification_updatesNeeded',
[31] Fix | Delete
'enabledValue' => 1,
[32] Fix | Delete
'disabledValue' => 0,
[33] Fix | Delete
'value' => wfConfig::get('notification_updatesNeeded') ? 1 : 0,
[34] Fix | Delete
'title' => __('Updates Needed (Plugin, Theme, or Core)', 'wordfence'),
[35] Fix | Delete
))->render();
[36] Fix | Delete
?>
[37] Fix | Delete
</li>
[38] Fix | Delete
<?php if (wfConfig::p()): ?>
[39] Fix | Delete
<li>
[40] Fix | Delete
<?php
[41] Fix | Delete
echo wfView::create('options/option-toggled', array(
[42] Fix | Delete
'optionName' => 'notification_securityAlerts',
[43] Fix | Delete
'enabledValue' => 1,
[44] Fix | Delete
'disabledValue' => 0,
[45] Fix | Delete
'value' => wfConfig::get('notification_securityAlerts') ? 1 : 0,
[46] Fix | Delete
'title' => __('Security Alerts', 'wordfence'),
[47] Fix | Delete
'premium' => true,
[48] Fix | Delete
))->render();
[49] Fix | Delete
?>
[50] Fix | Delete
</li>
[51] Fix | Delete
<li>
[52] Fix | Delete
<?php
[53] Fix | Delete
echo wfView::create('options/option-toggled', array(
[54] Fix | Delete
'optionName' => 'notification_promotions',
[55] Fix | Delete
'enabledValue' => 1,
[56] Fix | Delete
'disabledValue' => 0,
[57] Fix | Delete
'value' => wfConfig::get('notification_promotions') ? 1 : 0,
[58] Fix | Delete
'title' => __('Promotions', 'wordfence'),
[59] Fix | Delete
'premium' => true,
[60] Fix | Delete
))->render();
[61] Fix | Delete
?>
[62] Fix | Delete
</li>
[63] Fix | Delete
<li>
[64] Fix | Delete
<?php
[65] Fix | Delete
echo wfView::create('options/option-toggled', array(
[66] Fix | Delete
'optionName' => 'notification_blogHighlights',
[67] Fix | Delete
'enabledValue' => 1,
[68] Fix | Delete
'disabledValue' => 0,
[69] Fix | Delete
'value' => wfConfig::get('notification_blogHighlights') ? 1 : 0,
[70] Fix | Delete
'title' => __('Blog Highlights', 'wordfence'),
[71] Fix | Delete
'premium' => true,
[72] Fix | Delete
))->render();
[73] Fix | Delete
?>
[74] Fix | Delete
</li>
[75] Fix | Delete
<li>
[76] Fix | Delete
<?php
[77] Fix | Delete
echo wfView::create('options/option-toggled', array(
[78] Fix | Delete
'optionName' => 'notification_productUpdates',
[79] Fix | Delete
'enabledValue' => 1,
[80] Fix | Delete
'disabledValue' => 0,
[81] Fix | Delete
'value' => wfConfig::get('notification_productUpdates') ? 1 : 0,
[82] Fix | Delete
'title' => __('Product Updates', 'wordfence'),
[83] Fix | Delete
'premium' => true,
[84] Fix | Delete
))->render();
[85] Fix | Delete
?>
[86] Fix | Delete
</li>
[87] Fix | Delete
<?php endif; ?>
[88] Fix | Delete
<li>
[89] Fix | Delete
<?php
[90] Fix | Delete
echo wfView::create('options/option-toggled', array(
[91] Fix | Delete
'optionName' => 'notification_scanStatus',
[92] Fix | Delete
'enabledValue' => 1,
[93] Fix | Delete
'disabledValue' => 0,
[94] Fix | Delete
'value' => wfConfig::get('notification_scanStatus') ? 1 : 0,
[95] Fix | Delete
'title' => __('Scan Status', 'wordfence'),
[96] Fix | Delete
))->render();
[97] Fix | Delete
?>
[98] Fix | Delete
</li>
[99] Fix | Delete
<?php if (!wfConfig::p()): ?>
[100] Fix | Delete
<li>
[101] Fix | Delete
<ul class="wf-option">
[102] Fix | Delete
<li class="wf-option-spacer"></li>
[103] Fix | Delete
<li class="wf-flex-vertical wf-flex-align-left">
[104] Fix | Delete
<p><?php esc_html_e('Dashboard notifications will also be displayed for Security Alerts, Promotions, Blog Highlights, and Product Updates. These notifications can be disabled by upgrading to a premium license.', 'wordfence'); ?></p>
[105] Fix | Delete
<p class="wf-no-top"><a class="wf-btn wf-btn-primary wf-btn-callout-subtle" href="https://www.wordfence.com/gnl1dashboardUpgrade/wordfence-signup/#premium-order-form" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Upgrade to Premium', 'wordfence'); ?></a>&nbsp;&nbsp;<a class="wf-btn wf-btn-callout-subtle wf-btn-default" href="https://www.wordfence.com/gnl1dashboardLearn/wordfence-signup/" target="_blank" rel="noopener noreferrer"><?php esc_html_e('Learn More', 'wordfence'); ?><span class="screen-reader-text"> (<?php esc_html_e('opens in new tab', 'wordfence') ?>)</span></a></p>
[106] Fix | Delete
</li>
[107] Fix | Delete
</ul>
[108] Fix | Delete
</li>
[109] Fix | Delete
<?php endif; ?>
[110] Fix | Delete
</ul>
[111] Fix | Delete
</div>
[112] Fix | Delete
</div>
[113] Fix | Delete
</div>
[114] Fix | Delete
</div> <!-- end dashboard options -->
[115] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function