: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @copyright Copyright (c) 2015, Freemius, Inc.
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3
if ( ! defined( 'ABSPATH' ) ) {
$log_book = FS_Logger::get_log();
<h1><?php fs_echo_inline( 'Log' ) ?></h1>
<table class="widefat" style="font-size: 11px;">
<th><?php fs_esc_html_echo_inline( 'ID', 'id' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Type' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Function' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Message' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'File' ) ?></th>
<th><?php fs_esc_html_echo_inline( 'Timestamp' ) ?></th>
foreach ( $log_book as $log ) : ?>
$logger = $log['logger'];
echo ' class="alternate"';
<td><?php echo $log['cnt'] ?>.</td>
<td><?php echo $logger->get_id() ?></td>
<td><?php echo $log['log_type'] ?></td>
<td><b><code style="color: blue;"><?php echo ( ! empty( $log['class'] ) ? $log['class'] . $log['type'] : '' ) . $log['function'] ?></code></b></td>
'<a href="#" style="color: darkorange !important;" onclick="jQuery(this).parent().find(\'div\').toggle(); return false;"><nobr>%s</nobr></a>',
esc_html( substr( $log['msg'], 0, 32 ) ) . ( 32 < strlen( $log['msg'] ) ? '...' : '' )
<div style="display: none;">
<b style="color: darkorange;"><?php echo esc_html( $log['msg'] ) ?></b>
if ( isset( $log['file'] ) ) {
echo substr( $log['file'], $logger->get_file() ) . ':' . $log['line'];
<td><?php echo number_format( 100 * ( $log['timestamp'] - WP_FS__SCRIPT_START_TIME ), 2 ) . ' ' . fs_text_x_inline( 'ms', 'milliseconds' ) ?></td>
<?php $i ++; endforeach ?>