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/dashboar.../cdn
File: meta-box.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* CDN meta box.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 3.8.6
[4] Fix | Delete
* @package WP_Smush
[5] Fix | Delete
*
[6] Fix | Delete
* @var string $cdn_status CDN status.
[7] Fix | Delete
* @var bool $is_webp WebP conversion status.
[8] Fix | Delete
* @var string $upsell_url Upsell URL.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[12] Fix | Delete
die;
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
?>
[16] Fix | Delete
[17] Fix | Delete
<p>
[18] Fix | Delete
<?php esc_html_e( 'Multiply the speed and savings! Upload huge images and the Smush CDN will perfectly resize the files, safely convert to a Next-Gen format (WebP), and delivers them directly to your visitors from our blazing-fast multi-location globe servers.', 'wp-smushit' ); ?>
[19] Fix | Delete
</p>
[20] Fix | Delete
[21] Fix | Delete
<?php if ( ! WP_Smush::is_pro() ) : ?>
[22] Fix | Delete
<a href="<?php echo esc_url( $upsell_url ); ?>" target="_blank" class="sui-button sui-button-purple">
[23] Fix | Delete
<?php esc_html_e( 'Upgrade to Pro', 'wp-smushit' ); ?>
[24] Fix | Delete
</a>
[25] Fix | Delete
<?php else : ?>
[26] Fix | Delete
<?php if ( 'disabled' === $cdn_status ) : ?>
[27] Fix | Delete
<button class="sui-button sui-button-blue" id="smush-enable-cdn">
[28] Fix | Delete
<span class="sui-loading-text"><?php esc_html_e( 'Activate', 'wp-smushit' ); ?></span>
[29] Fix | Delete
<i class="sui-icon-loader sui-loading" aria-hidden="true"></i>
[30] Fix | Delete
</button>
[31] Fix | Delete
<?php else : ?>
[32] Fix | Delete
<?php if ( 'overcap' === $cdn_status ) : ?>
[33] Fix | Delete
<div class="sui-notice sui-notice-error">
[34] Fix | Delete
<div class="sui-notice-content">
[35] Fix | Delete
<div class="sui-notice-message">
[36] Fix | Delete
<span class="sui-notice-icon sui-icon-warning-alert sui-md" aria-hidden="true"></span>
[37] Fix | Delete
<p><?php esc_attr_e( "You've gone through your CDN bandwidth limit, so we’ve stopped serving your images via the CDN. Contact your administrator to upgrade your Smush CDN plan to reactivate this service.", 'wp-smushit' ); ?></p>
[38] Fix | Delete
</div>
[39] Fix | Delete
</div>
[40] Fix | Delete
</div>
[41] Fix | Delete
<?php elseif ( 'upgrade' === $cdn_status ) : ?>
[42] Fix | Delete
<div class="sui-notice sui-notice-warning">
[43] Fix | Delete
<div class="sui-notice-content">
[44] Fix | Delete
<div class="sui-notice-message">
[45] Fix | Delete
<span class="sui-notice-icon sui-icon-warning-alert sui-md" aria-hidden="true"></span>
[46] Fix | Delete
<p><?php esc_attr_e( "You're almost through your CDN bandwidth limit. Please contact your administrator to upgrade your Smush CDN plan to ensure you don't lose this service.", 'wp-smushit' ); ?></p>
[47] Fix | Delete
</div>
[48] Fix | Delete
</div>
[49] Fix | Delete
</div>
[50] Fix | Delete
<?php else : ?>
[51] Fix | Delete
<div class="sui-notice sui-notice-success">
[52] Fix | Delete
<div class="sui-notice-content">
[53] Fix | Delete
<div class="sui-notice-message">
[54] Fix | Delete
<span class="sui-notice-icon sui-icon-check-tick sui-md" aria-hidden="true"></span>
[55] Fix | Delete
<p><?php esc_attr_e( 'Your media is currently being served from the WPMU DEV CDN.', 'wp-smushit' ); ?></p>
[56] Fix | Delete
</div>
[57] Fix | Delete
</div>
[58] Fix | Delete
</div>
[59] Fix | Delete
<?php endif; ?>
[60] Fix | Delete
[61] Fix | Delete
<div class="sui-box-settings-row sui-flushed sui-no-padding">
[62] Fix | Delete
<table class="sui-table sui-table-flushed">
[63] Fix | Delete
<thead>
[64] Fix | Delete
<tr>
[65] Fix | Delete
<th><?php esc_html_e( 'Tools', 'wp-smushit' ); ?></th>
[66] Fix | Delete
<th colspan="2" width="50%"><?php esc_html_e( 'Status', 'wp-smushit' ); ?></th>
[67] Fix | Delete
</tr>
[68] Fix | Delete
</thead>
[69] Fix | Delete
[70] Fix | Delete
<tbody>
[71] Fix | Delete
<tr>
[72] Fix | Delete
<td class="sui-table-item-title">
[73] Fix | Delete
<span class="smush-filename-extension smush-extension-webp">webp</span>
[74] Fix | Delete
<?php esc_html_e( 'WebP Conversion', 'wp-smushit' ); ?>
[75] Fix | Delete
</td>
[76] Fix | Delete
<td>
[77] Fix | Delete
<?php if ( $is_webp ) : ?>
[78] Fix | Delete
<span class="sui-tag sui-tag-green"><?php esc_html_e( 'Active', 'wp-smushit' ); ?></span>
[79] Fix | Delete
<?php else : ?>
[80] Fix | Delete
<span class="sui-tag"><?php esc_html_e( 'Inactive', 'wp-smushit' ); ?></span>
[81] Fix | Delete
<?php endif; ?>
[82] Fix | Delete
</td>
[83] Fix | Delete
<td>
[84] Fix | Delete
<a href="<?php echo esc_url( $this->get_url( 'smush-cdn' ) ); ?>" role="button" class="sui-button-icon">
[85] Fix | Delete
<span class="sui-icon-widget-settings-config" aria-hidden="true"></span>
[86] Fix | Delete
<span class="sui-screen-reader-text"><?php esc_html_e( 'Configure', 'wp-smushit' ); ?></span>
[87] Fix | Delete
</a>
[88] Fix | Delete
</td>
[89] Fix | Delete
</tr>
[90] Fix | Delete
</tbody>
[91] Fix | Delete
</table>
[92] Fix | Delete
</div>
[93] Fix | Delete
[94] Fix | Delete
<a href="<?php echo esc_url( $this->get_url( 'smush-cdn' ) ); ?>" class="sui-button sui-button-ghost">
[95] Fix | Delete
<span class="sui-icon-wrench-tool" aria-hidden="true"></span>
[96] Fix | Delete
<?php esc_html_e( 'Configure', 'wp-smushit' ); ?>
[97] Fix | Delete
</a>
[98] Fix | Delete
<?php endif; ?>
[99] Fix | Delete
<?php endif; ?>
[100] Fix | Delete
[101] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function