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.../lib/dashboar...
File: widget_content_logins.php
<?php if (!defined('WORDFENCE_VERSION')) { exit; } ?>
[0] Fix | Delete
<?php //$data is defined here as an array of login attempts: array('t' => timestamp, 'name' => username, 'ip' => IP address) ?>
[1] Fix | Delete
<table class="wf-table wf-table-hover">
[2] Fix | Delete
<thead>
[3] Fix | Delete
<tr>
[4] Fix | Delete
<th><?php esc_html_e('Username', 'wordfence') ?></th>
[5] Fix | Delete
<th><?php esc_html_e('IP', 'wordfence') ?></th>
[6] Fix | Delete
<th><?php esc_html_e('Date', 'wordfence') ?></th>
[7] Fix | Delete
</tr>
[8] Fix | Delete
</thead>
[9] Fix | Delete
<tbody>
[10] Fix | Delete
<?php foreach ($data as $l): ?>
[11] Fix | Delete
<tr>
[12] Fix | Delete
<td><?php echo esc_html($l['name']); ?></td>
[13] Fix | Delete
<td><?php echo esc_html($l['ip']); ?></td>
[14] Fix | Delete
<td><?php
[15] Fix | Delete
if (time() - $l['t'] < 86400) {
[16] Fix | Delete
echo esc_html(wfUtils::makeTimeAgo(time() - $l['t']) . ' ago');
[17] Fix | Delete
}
[18] Fix | Delete
else {
[19] Fix | Delete
echo esc_html(wfUtils::formatLocalTime(get_option('date_format') . ' ' . get_option('time_format'), (int) $l['t']));
[20] Fix | Delete
}
[21] Fix | Delete
?></td>
[22] Fix | Delete
</tr>
[23] Fix | Delete
<?php endforeach; ?>
[24] Fix | Delete
</tbody>
[25] Fix | Delete
</table>
[26] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function