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/webp
File: configured-meta-box.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WebP configured status meta box.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*/
[5] Fix | Delete
use Smush\Core\Stats\Global_Stats;
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[8] Fix | Delete
die;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
$required_bulk_smush = Global_Stats::get()->is_outdated() || Global_Stats::get()->get_remaining_count() > 0;
[12] Fix | Delete
if ( is_multisite() ) {
[13] Fix | Delete
$notice_type = 'success';
[14] Fix | Delete
$icon_name = 'check-tick';
[15] Fix | Delete
$status_message = __( 'Local WebP is active.', 'wp-smushit' );
[16] Fix | Delete
} elseif ( $required_bulk_smush ) {
[17] Fix | Delete
$notice_type = 'warning';
[18] Fix | Delete
$icon_name = 'warning-alert';
[19] Fix | Delete
$status_message = __( 'Local WebP is active.', 'wp-smushit' );
[20] Fix | Delete
} else {
[21] Fix | Delete
$notice_type = 'success';
[22] Fix | Delete
$icon_name = 'check-tick';
[23] Fix | Delete
$status_message = __( 'Local WebP is active and working well.', 'wp-smushit' );
[24] Fix | Delete
}
[25] Fix | Delete
?>
[26] Fix | Delete
<div class="sui-notice sui-notice-<?php echo esc_attr( $notice_type ); ?>">
[27] Fix | Delete
<div class="sui-notice-content">
[28] Fix | Delete
<div class="sui-notice-message">
[29] Fix | Delete
<i class="sui-notice-icon sui-icon-<?php echo esc_attr( $icon_name ); ?> sui-md" aria-hidden="true"></i>
[30] Fix | Delete
<p>
[31] Fix | Delete
<?php echo esc_html( $status_message ); ?>
[32] Fix | Delete
</p>
[33] Fix | Delete
<p>
[34] Fix | Delete
<?php
[35] Fix | Delete
if ( is_multisite() ) {
[36] Fix | Delete
esc_html_e( 'Please run Bulk Smush on each subsite to serve existing images as WebP.', 'wp-smushit' );
[37] Fix | Delete
} elseif ( $required_bulk_smush ) {
[38] Fix | Delete
printf(
[39] Fix | Delete
/* translators: 1. opening 'a' tag, 2. closing 'a' tag */
[40] Fix | Delete
esc_html__( '%1$sBulk Smush%2$s now to serve existing images as WebP.', 'wp-smushit' ),
[41] Fix | Delete
'<a href="' . esc_url( $this->get_url( 'smush-bulk&smush-action=start-bulk-webp-conversion#smush-box-bulk' ) ) . '">',
[42] Fix | Delete
'</a>'
[43] Fix | Delete
);
[44] Fix | Delete
} elseif ( ! $this->settings->is_automatic_compression_active() ) {
[45] Fix | Delete
printf(
[46] Fix | Delete
/* translators: 1. opening 'a' tag, 2. closing 'a' tag */
[47] Fix | Delete
esc_html__( 'If you wish to automatically convert all new uploads to WebP, please enable the %1$sAutomatic Compression%2$s setting on the Bulk Smush page.', 'wp-smushit' ),
[48] Fix | Delete
'<a href="' . esc_url( $this->get_url( 'smush-bulk' ) ) . '#column-auto">',
[49] Fix | Delete
'</a>'
[50] Fix | Delete
);
[51] Fix | Delete
} else {
[52] Fix | Delete
esc_html_e( 'Newly uploaded images will be automatically converted to WebP.', 'wp-smushit' );
[53] Fix | Delete
}
[54] Fix | Delete
?>
[55] Fix | Delete
</p>
[56] Fix | Delete
</div>
[57] Fix | Delete
</div>
[58] Fix | Delete
</div>
[59] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function