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: meta-box-header.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WebP meta box header.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*
[5] Fix | Delete
* @var boolean $is_disabled Whether the WebP module is disabled.
[6] Fix | Delete
* @var boolean $is_configured Whether WebP images are being served.
[7] Fix | Delete
*/
[8] Fix | Delete
use Smush\Core\Webp\Webp_Configuration;
[9] Fix | Delete
[10] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[11] Fix | Delete
die;
[12] Fix | Delete
}
[13] Fix | Delete
[14] Fix | Delete
$direct_conversion_enabled = Webp_Configuration::get_instance()->direct_conversion_enabled();
[15] Fix | Delete
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
<h3 class="sui-box-title">
[19] Fix | Delete
<?php esc_html_e( 'Local WebP', 'wp-smushit' ); ?>
[20] Fix | Delete
<?php
[21] Fix | Delete
if ( ! $is_disabled ) {
[22] Fix | Delete
echo ' - ';
[23] Fix | Delete
echo $direct_conversion_enabled ? esc_html__( 'Direct Conversion method', 'wp-smushit' ) : esc_html__( 'Server Configuration method', 'wp-smushit' );
[24] Fix | Delete
}
[25] Fix | Delete
?>
[26] Fix | Delete
</h3>
[27] Fix | Delete
[28] Fix | Delete
<?php if ( ! WP_Smush::is_pro() ) : ?>
[29] Fix | Delete
<div class="sui-actions-left">
[30] Fix | Delete
<span class="sui-tag sui-tag-pro sui-tooltip sui-tooltip-constrained" data-tooltip="<?php esc_attr_e( 'Join WPMU DEV to use this feature', 'wp-smushit' ); ?>">
[31] Fix | Delete
<?php esc_html_e( 'Pro', 'wp-smushit' ); ?>
[32] Fix | Delete
</span>
[33] Fix | Delete
</div>
[34] Fix | Delete
<?php endif; ?>
[35] Fix | Delete
[36] Fix | Delete
<?php
[37] Fix | Delete
if ( ! $is_disabled ) :
[38] Fix | Delete
$tooltip_message = $direct_conversion_enabled ? __( 'Uses server-side setup. Only try this if you are facing issues with the Direct Conversion method.', 'wp-smushit' ) : __( 'One-click method that works on all server types without requiring server configuration. (Recommended)', 'wp-smushit' );
[39] Fix | Delete
$method_name = $direct_conversion_enabled ? 'rewrite_rule' : Webp_Configuration::DIRECT_CONVERSION_METHOD;
[40] Fix | Delete
?>
[41] Fix | Delete
<a class="sui-actions-right sui-sm sui-tooltip sui-tooltip-constrained sui-tooltip-bottom-left" href="javascript:void(0);"
[42] Fix | Delete
id="smush-switch-webp-method" data-method="<?php echo esc_attr( $method_name ); ?>"
[43] Fix | Delete
data-tooltip="<?php echo esc_html( $tooltip_message ); ?>"
[44] Fix | Delete
aria-hidden="true"
[45] Fix | Delete
>
[46] Fix | Delete
<i class="sui-notice-icon sui-icon-info sui-sm"
[47] Fix | Delete
data-tooltip="<?php echo esc_html( $tooltip_message ); ?>"
[48] Fix | Delete
aria-hidden="true"
[49] Fix | Delete
></i>
[50] Fix | Delete
<span class="sui-description" style="margin: 0 0 0 5px;">
[51] Fix | Delete
<?php
[52] Fix | Delete
$method_title = $direct_conversion_enabled ? __( 'Server Configuration', 'wp-smushit' ) : __( 'Direct Conversion', 'wp-smushit' );
[53] Fix | Delete
$style_attr = $direct_conversion_enabled ? 'font-weight:700; color:#888;' : 'font-weight:700; color:#17A8E3';
[54] Fix | Delete
printf(
[55] Fix | Delete
/* translators: Switch WebP method link */
[56] Fix | Delete
esc_html__( 'Switch to %s method', 'wp-smushit' ),
[57] Fix | Delete
'<span style="' . esc_attr( $style_attr ) . '">' . esc_html( $method_title ) . '</span>'
[58] Fix | Delete
);
[59] Fix | Delete
?>
[60] Fix | Delete
</span>
[61] Fix | Delete
<?php
[62] Fix | Delete
if ( ! $direct_conversion_enabled ) {
[63] Fix | Delete
echo '<span class="sui-tag smush-sui-tag-new" style="margin-left:5px">' . esc_html__( 'New', 'wp-smushit' ) . '</span>';
[64] Fix | Delete
}
[65] Fix | Delete
?>
[66] Fix | Delete
</a>
[67] Fix | Delete
<?php endif; ?>
[68] Fix | Delete
[69] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function