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/wp-conte.../plugins/content-.../inc/freemius/template.../debug
File: logger.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* @package Freemius
[2] Fix | Delete
* @copyright Copyright (c) 2015, Freemius, Inc.
[3] Fix | Delete
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
[4] Fix | Delete
* @since 1.1.7.3
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
$log_book = FS_Logger::get_log();
[12] Fix | Delete
?>
[13] Fix | Delete
<h1><?php fs_echo_inline( 'Log' ) ?></h1>
[14] Fix | Delete
[15] Fix | Delete
<table class="widefat" style="font-size: 11px;">
[16] Fix | Delete
<thead>
[17] Fix | Delete
<tr>
[18] Fix | Delete
<th>#</th>
[19] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
[20] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'Type' ) ?></th>
[21] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'Function' ) ?></th>
[22] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'Message' ) ?></th>
[23] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'File' ) ?></th>
[24] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'Timestamp' ) ?></th>
[25] Fix | Delete
</tr>
[26] Fix | Delete
</thead>
[27] Fix | Delete
<tbody>
[28] Fix | Delete
[29] Fix | Delete
<?php $i = 0;
[30] Fix | Delete
foreach ( $log_book as $log ) : ?>
[31] Fix | Delete
<?php
[32] Fix | Delete
/**
[33] Fix | Delete
* @var FS_Logger $logger
[34] Fix | Delete
*/
[35] Fix | Delete
$logger = $log['logger'];
[36] Fix | Delete
?>
[37] Fix | Delete
<tr<?php if ( $i % 2 ) {
[38] Fix | Delete
echo ' class="alternate"';
[39] Fix | Delete
} ?>>
[40] Fix | Delete
<td><?php echo $log['cnt'] ?>.</td>
[41] Fix | Delete
<td><?php echo $logger->get_id() ?></td>
[42] Fix | Delete
<td><?php echo $log['log_type'] ?></td>
[43] Fix | Delete
<td><b><code style="color: blue;"><?php echo ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'] ?></code></b></td>
[44] Fix | Delete
<td>
[45] Fix | Delete
<?php
[46] Fix | Delete
printf(
[47] Fix | Delete
'<a href="#" style="color: darkorange !important;" onclick="jQuery(this).parent().find(\'div\').toggle(); return false;"><nobr>%s</nobr></a>',
[48] Fix | Delete
esc_html( substr( $log['msg'], 0, 32 ) ) . ( 32 < strlen( $log['msg'] ) ? '...' : '' )
[49] Fix | Delete
);
[50] Fix | Delete
?>
[51] Fix | Delete
<div style="display: none;">
[52] Fix | Delete
<b style="color: darkorange;"><?php echo esc_html( $log['msg'] ) ?></b>
[53] Fix | Delete
</div>
[54] Fix | Delete
</td>
[55] Fix | Delete
<td><?php
[56] Fix | Delete
if ( isset( $log['file'] ) ) {
[57] Fix | Delete
echo substr( $log['file'], $logger->get_file() ) . ':' . $log['line'];
[58] Fix | Delete
}
[59] Fix | Delete
?></td>
[60] Fix | Delete
<td><?php echo number_format( 100 * ( $log['timestamp'] - WP_FS__SCRIPT_START_TIME ), 2 ) . ' ' . fs_text_x_inline( 'ms', 'milliseconds' ) ?></td>
[61] Fix | Delete
</tr>
[62] Fix | Delete
<?php $i ++; endforeach ?>
[63] Fix | Delete
</tbody>
[64] Fix | Delete
</table>
[65] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function