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/scanner
File: options-group-performance.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents the Performance Options group.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $scanner and $stateKey.
[5] Fix | Delete
*
[6] Fix | Delete
* @var wfScanner $scanner
[7] Fix | Delete
* @var string $stateKey The key under which the collapse state is stored.
[8] Fix | Delete
* @var bool $collapseable If defined, specifies whether or not this grouping can be collapsed. Defaults to true.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
if (!isset($collapseable)) {
[12] Fix | Delete
$collapseable = true;
[13] Fix | Delete
}
[14] Fix | Delete
?>
[15] Fix | Delete
<div class="wf-row">
[16] Fix | Delete
<div class="wf-col-xs-12">
[17] 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); ?>">
[18] Fix | Delete
<div class="wf-block-header">
[19] Fix | Delete
<div class="wf-block-header-content">
[20] Fix | Delete
<div class="wf-block-title">
[21] Fix | Delete
<strong><?php esc_html_e('Performance Options', 'wordfence'); ?></strong>
[22] Fix | Delete
</div>
[23] 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; ?>
[24] Fix | Delete
</div>
[25] Fix | Delete
</div>
[26] Fix | Delete
<div class="wf-block-content">
[27] Fix | Delete
<ul class="wf-block-list">
[28] Fix | Delete
<?php
[29] Fix | Delete
$options = array(
[30] Fix | Delete
array('key' => 'lowResourceScansEnabled', 'label' => __('Use low resource scanning (reduces server load by lengthening the scan duration)', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_LOW_RESOURCE)),
[31] Fix | Delete
array('key' => 'scan_maxIssues', 'label' => __('Limit the number of issues sent in the scan results email', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_LIMIT_ISSUES), 'view' => 'options/option-text', 'parameters' => array('subtitle' => __('0 or empty means unlimited issues will be sent', 'wordfence'))),
[32] Fix | Delete
array('key' => 'scan_maxDuration', 'label' => __('Time limit that a scan can run in seconds', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_OVERALL_TIME_LIMIT), 'view' => 'options/option-text', 'parameters' => array('subtitle' => sprintf(/* translators: Time until. */ __('0 or empty means the default of %s will be used', 'wordfence'), wfUtils::makeDuration(WORDFENCE_DEFAULT_MAX_SCAN_TIME)))),
[33] Fix | Delete
array('key' => 'maxMem', 'label' => __('How much memory should Wordfence request when scanning', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_MEMORY_LIMIT), 'view' => 'options/option-text', 'parameters' => array('subtitle' => __('Memory size in megabytes', 'wordfence'))),
[34] Fix | Delete
array('key' => 'maxExecutionTime', 'label' => __('Maximum execution time for each scan stage ', 'wordfence'), 'helpLink' => wfSupportController::supportURL(wfSupportController::ITEM_SCAN_OPTION_STAGE_TIME_LIMIT), 'view' => 'options/option-text', 'parameters' => array('subtitle' => sprintf(/* translators: PHP max execution time (number). */ __('0 for default. Must be %d or greater and 10-20 or higher is recommended for most servers', 'wordfence'), intval(WORDFENCE_SCAN_MIN_EXECUTION_TIME)))),
[35] Fix | Delete
);
[36] Fix | Delete
foreach ($options as $o):
[37] Fix | Delete
?>
[38] Fix | Delete
<li>
[39] Fix | Delete
<?php
[40] Fix | Delete
if (isset($o['view']) && $o['view'] == 'options/option-text') {
[41] Fix | Delete
if (!isset($o['parameters'])) { $o['parameters'] = array(); }
[42] Fix | Delete
echo wfView::create($o['view'], array_merge(array(
[43] Fix | Delete
'textOptionName' => $o['key'],
[44] Fix | Delete
'textValue' => wfConfig::get($o['key']),
[45] Fix | Delete
'title' => $o['label'],
[46] Fix | Delete
'helpLink' => $o['helpLink'],
[47] Fix | Delete
), $o['parameters']))->render();
[48] Fix | Delete
}
[49] Fix | Delete
else {
[50] Fix | Delete
echo wfView::create('options/option-toggled', array(
[51] Fix | Delete
'optionName' => $o['key'],
[52] Fix | Delete
'enabledValue' => 1,
[53] Fix | Delete
'disabledValue' => 0,
[54] Fix | Delete
'value' => wfConfig::get($o['key']) ? 1 : 0,
[55] Fix | Delete
'title' => $o['label'],
[56] Fix | Delete
'helpLink' => $o['helpLink'],
[57] Fix | Delete
'disabled' => isset($o['disabled']) ? $o['disabled'] : false,
[58] Fix | Delete
))->render();
[59] Fix | Delete
}
[60] Fix | Delete
?>
[61] Fix | Delete
</li>
[62] Fix | Delete
<?php endforeach; ?>
[63] Fix | Delete
</ul>
[64] Fix | Delete
</div>
[65] Fix | Delete
</div>
[66] Fix | Delete
</div>
[67] Fix | Delete
</div> <!-- end performance options -->
[68] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function