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: scan-starter.php
<?php
[0] Fix | Delete
if (!defined('WORDFENCE_VERSION')) { exit; }
[1] Fix | Delete
/**
[2] Fix | Delete
* Presents a block list element specifically for the start scan button.
[3] Fix | Delete
*
[4] Fix | Delete
* Expects $running.
[5] Fix | Delete
*
[6] Fix | Delete
* @var bool $running Whether or not the scan is currently running.
[7] Fix | Delete
*/
[8] Fix | Delete
?>
[9] Fix | Delete
<div id="wf-scan-starter" class="wf-block-navigation-option">
[10] Fix | Delete
<div class="wf-block-navigation-option-content">
[11] Fix | Delete
<a href="#" class="wf-btn wf-btn-primary wf-btn-callout-subtle wf-scan-starter-idle" style="<?php if ($running) { echo 'display: none;'; } ?>" role="button"><?php esc_html_e('Start New Scan', 'wordfence'); ?></a>
[12] Fix | Delete
<a href="#" class="wf-btn wf-btn-primary wf-btn-callout-subtle wf-scan-starter-running" style="<?php if (!$running) { echo 'display: none;'; } ?>;" role="button"><?php esc_html_e('Stop Scan', 'wordfence'); ?></a>
[13] Fix | Delete
</div>
[14] Fix | Delete
</div>
[15] Fix | Delete
<script type="application/javascript">
[16] Fix | Delete
(function($) {
[17] Fix | Delete
$('#wf-scan-starter a').on('click', function(e) {
[18] Fix | Delete
e.preventDefault();
[19] Fix | Delete
e.stopPropagation();
[20] Fix | Delete
[21] Fix | Delete
if ($(this).hasClass('wf-scan-starter-idle')) {
[22] Fix | Delete
WFAD.startScan();
[23] Fix | Delete
$('#wf-scan-running-bar').show();
[24] Fix | Delete
}
[25] Fix | Delete
else {
[26] Fix | Delete
WFAD.killScan(function(success) {
[27] Fix | Delete
WFAD.colorboxModal((WFAD.isSmallScreen ? '300px' : '400px'), success ? '<?php esc_attr_e('Scan Stopping', 'wordfence'); ?>' : '<?php esc_attr_e('Stop Failed', 'wordfence'); ?>', success ? '<?php esc_attr_e('A termination request has been sent to stop any running scans.', 'wordfence'); ?>' : '<?php esc_attr_e('We failed to send a termination request.', 'wordfence'); ?>');
[28] Fix | Delete
});
[29] Fix | Delete
$('#wf-scan-running-bar').hide();
[30] Fix | Delete
}
[31] Fix | Delete
});
[32] Fix | Delete
[33] Fix | Delete
$(window).on('wfScanUpdateButtons', function() {
[34] Fix | Delete
if (WFAD.scanRunning) {
[35] Fix | Delete
$('.wf-scan-starter-idle').hide();
[36] Fix | Delete
$('.wf-scan-starter-running').show();
[37] Fix | Delete
}
[38] Fix | Delete
else {
[39] Fix | Delete
$('.wf-scan-starter-idle').show().toggleClass('wf-disabled', WFAD.scanStalled);
[40] Fix | Delete
$('.wf-scan-starter-running').hide();
[41] Fix | Delete
}
[42] Fix | Delete
})
[43] Fix | Delete
})(jQuery);
[44] Fix | Delete
</script>
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function