: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @var bool $is_configured Is local WebP module configured. Error message if it's not.
* @var string $error_message Server configuration error message.
* @var bool $is_webp_active Is local WebP module enabled.
* @var string $upsell_url Upsell URL.
if ( ! defined( 'WPINC' ) ) {
<?php esc_html_e( "Serve WebP versions of your images to supported browsers, and gracefully fall back on JPEGs and PNGs for browsers that don't support WebP.", 'wp-smushit' ); ?>
<?php if ( ! WP_Smush::is_pro() ) : ?>
<a href="<?php echo esc_url( $upsell_url ); ?>" target="_blank" class="sui-button sui-button-purple">
<?php esc_html_e( 'Upgrade to Pro', 'wp-smushit' ); ?>
<?php elseif ( ! $is_webp_active ) : ?>
<button class="sui-button sui-button-blue" id="smush-toggle-webp-button" data-action="enable">
<span class="sui-loading-text"><?php esc_html_e( 'Activate', 'wp-smushit' ); ?></span>
<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>
$this->view( 'webp/configured-meta-box' );
'webp/required-configuration-meta-box',
'error_message' => $error_message,
<a href="<?php echo esc_url( $this->get_url( 'smush-webp' ) ); ?>" class="sui-button sui-button-ghost">
<span class="sui-icon-wrench-tool" aria-hidden="true"></span>
<?php esc_html_e( 'Configure', 'wp-smushit' ); ?>