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: plugins-themes-sync.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
$fs_options = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true );
[12] Fix | Delete
$all_plugins = $fs_options->get_option( 'all_plugins' );
[13] Fix | Delete
$all_themes = $fs_options->get_option( 'all_themes' );
[14] Fix | Delete
[15] Fix | Delete
/* translators: %s: time period (e.g. In "2 hours") */
[16] Fix | Delete
$in_x_text = fs_text_inline( 'In %s', 'in-x' );
[17] Fix | Delete
/* translators: %s: time period (e.g. "2 hours" ago) */
[18] Fix | Delete
$x_ago_text = fs_text_inline( '%s ago', 'x-ago' );
[19] Fix | Delete
$sec_text = fs_text_x_inline( 'sec', 'seconds' );
[20] Fix | Delete
?>
[21] Fix | Delete
<h1><?php fs_esc_html_echo_inline( 'Plugins & Themes Sync', 'plugins-themes-sync' ) ?></h1>
[22] Fix | Delete
<table class="widefat">
[23] Fix | Delete
<thead>
[24] Fix | Delete
<tr>
[25] Fix | Delete
<th></th>
[26] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'Total', 'total' ) ?></th>
[27] Fix | Delete
<th><?php fs_esc_html_echo_inline( 'Last', 'last' ) ?></th>
[28] Fix | Delete
</tr>
[29] Fix | Delete
</thead>
[30] Fix | Delete
<tbody>
[31] Fix | Delete
<?php if ( is_object( $all_plugins ) ) : ?>
[32] Fix | Delete
<tr>
[33] Fix | Delete
<td><?php fs_esc_html_echo_inline( 'Plugins', 'plugins' ) ?></td>
[34] Fix | Delete
<td><?php echo count( $all_plugins->plugins ) ?></td>
[35] Fix | Delete
<td><?php
[36] Fix | Delete
if ( isset( $all_plugins->timestamp ) && is_numeric( $all_plugins->timestamp ) ) {
[37] Fix | Delete
$diff = abs( WP_FS__SCRIPT_START_TIME - $all_plugins->timestamp );
[38] Fix | Delete
$human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
[39] Fix | Delete
$diff . ' ' . $sec_text :
[40] Fix | Delete
human_time_diff( WP_FS__SCRIPT_START_TIME, $all_plugins->timestamp );
[41] Fix | Delete
[42] Fix | Delete
echo esc_html( sprintf(
[43] Fix | Delete
( ( WP_FS__SCRIPT_START_TIME < $all_plugins->timestamp ) ?
[44] Fix | Delete
$in_x_text :
[45] Fix | Delete
$x_ago_text ),
[46] Fix | Delete
$human_diff
[47] Fix | Delete
) );
[48] Fix | Delete
}
[49] Fix | Delete
?></td>
[50] Fix | Delete
</tr>
[51] Fix | Delete
<?php endif ?>
[52] Fix | Delete
<?php if ( is_object( $all_themes ) ) : ?>
[53] Fix | Delete
<tr>
[54] Fix | Delete
<td><?php fs_esc_html_echo_inline( 'Themes', 'themes' ) ?></td>
[55] Fix | Delete
<td><?php echo count( $all_themes->themes ) ?></td>
[56] Fix | Delete
<td><?php
[57] Fix | Delete
if ( isset( $all_themes->timestamp ) && is_numeric( $all_themes->timestamp ) ) {
[58] Fix | Delete
$diff = abs( WP_FS__SCRIPT_START_TIME - $all_themes->timestamp );
[59] Fix | Delete
$human_diff = ( $diff < MINUTE_IN_SECONDS ) ?
[60] Fix | Delete
$diff . ' ' . $sec_text :
[61] Fix | Delete
human_time_diff( WP_FS__SCRIPT_START_TIME, $all_themes->timestamp );
[62] Fix | Delete
[63] Fix | Delete
echo esc_html( sprintf(
[64] Fix | Delete
( ( WP_FS__SCRIPT_START_TIME < $all_themes->timestamp ) ?
[65] Fix | Delete
$in_x_text :
[66] Fix | Delete
$x_ago_text ),
[67] Fix | Delete
$human_diff
[68] Fix | Delete
) );
[69] Fix | Delete
}
[70] Fix | Delete
?></td>
[71] Fix | Delete
</tr>
[72] Fix | Delete
<?php endif ?>
[73] Fix | Delete
</tbody>
[74] Fix | Delete
</table>
[75] Fix | Delete
[76] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function