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/wp-smush.../app/views/summary
File: lossy-level.php
<?php
[0] Fix | Delete
[1] Fix | Delete
use Smush\Core\Settings;
[2] Fix | Delete
[3] Fix | Delete
$lossy_level_setting = Settings::get_instance()->get_lossy_level_setting();
[4] Fix | Delete
$is_ultra_active = Settings::LEVEL_ULTRA_LOSSY === $lossy_level_setting;
[5] Fix | Delete
$is_super_active = Settings::LEVEL_SUPER_LOSSY === $lossy_level_setting;
[6] Fix | Delete
$is_pro = WP_Smush::is_pro();
[7] Fix | Delete
$class_names = array();
[8] Fix | Delete
if ( ! $is_pro ) {
[9] Fix | Delete
$class_names[] = 'smush-upsell-link wp-smush-upsell-ultra-compression';
[10] Fix | Delete
$is_dashboard_page = 'smush' === $this->get_slug();
[11] Fix | Delete
$location = $is_dashboard_page ? 'dashboard_summary' : 'bulksmush_summary';
[12] Fix | Delete
$utm_link = $this->get_utm_link(
[13] Fix | Delete
array(
[14] Fix | Delete
'utm_campaign' => "smush_ultra_{$location}",
[15] Fix | Delete
)
[16] Fix | Delete
);
[17] Fix | Delete
} elseif ( $is_ultra_active ) {
[18] Fix | Delete
$class_names[] = 'sui-hidden';
[19] Fix | Delete
}
[20] Fix | Delete
?>
[21] Fix | Delete
<li class="smush-summary-row-compression-type">
[22] Fix | Delete
<span class="sui-list-label"><?php esc_html_e( 'Smush Mode', 'wp-smushit' ); ?></span>
[23] Fix | Delete
<span class="sui-list-detail">
[24] Fix | Delete
<span class="wp-smush-current-compression-level sui-tag sui-tag-green"><?php echo esc_html( Settings::get_instance()->get_current_lossy_level_label() ); ?></span>
[25] Fix | Delete
<a target="<?php echo $is_pro ? '_self' : '_blank'; ?>" href="<?php echo isset( $utm_link ) ? esc_url( $utm_link ) : esc_url( $this->get_url( 'smush-bulk' ) ) . '#lossy-settings-row'; ?>" class="<?php echo esc_attr( join( ' ', $class_names ) ); ?>" title="<?php esc_attr_e( 'Choose the level of compression that suits your needs.', 'wp-smushit' ); ?>">
[26] Fix | Delete
<?php if ( $is_pro ) : ?>
[27] Fix | Delete
<?php esc_html_e( 'Improve page speed with Ultra', 'wp-smushit' ); ?>
[28] Fix | Delete
<?php else : ?>
[29] Fix | Delete
<?php esc_html_e( '5x your compression with Ultra', 'wp-smushit' ); ?>
[30] Fix | Delete
<span class="sui-icon-open-new-window" aria-hidden="true"></span>
[31] Fix | Delete
<?php endif; ?>
[32] Fix | Delete
</a>
[33] Fix | Delete
</span>
[34] Fix | Delete
</li>
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function