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/common
File: meta-box-footer.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Footer meta box, common to one or more modules.
[2] Fix | Delete
*
[3] Fix | Delete
* @since 3.2.0
[4] Fix | Delete
* @package WP_Smush
[5] Fix | Delete
*
[6] Fix | Delete
* @var \Smush\App\Abstract_Page $this
[7] Fix | Delete
*/
[8] Fix | Delete
[9] Fix | Delete
use Smush\Core\CDN\CDN_Helper;
[10] Fix | Delete
[11] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[12] Fix | Delete
die;
[13] Fix | Delete
}
[14] Fix | Delete
[15] Fix | Delete
$current_tab = $this->get_slug();
[16] Fix | Delete
$button_msg = 'smush-bulk' === $current_tab ? '' : __( 'Saving changes...', 'wp-smushit' );
[17] Fix | Delete
$button_text = __( 'Save changes', 'wp-smushit' );
[18] Fix | Delete
[19] Fix | Delete
/**
[20] Fix | Delete
* Filter to enable/disable submit button in integration settings.
[21] Fix | Delete
*
[22] Fix | Delete
* @param bool $show_submit Should show submit?
[23] Fix | Delete
*/
[24] Fix | Delete
$enabled = 'smush-integrations' === $current_tab ? apply_filters( 'wp_smush_integration_show_submit', false ) : true;
[25] Fix | Delete
[26] Fix | Delete
if ( 'smush-cdn' === $current_tab && ! CDN_Helper::get_instance()->is_cdn_active() ) {
[27] Fix | Delete
$button_text = __( 'Save & Activate', 'wp-smushit' );
[28] Fix | Delete
$button_msg = __( 'Activating CDN...', 'wp-smushit' );
[29] Fix | Delete
}
[30] Fix | Delete
?>
[31] Fix | Delete
[32] Fix | Delete
<div class="sui-actions-right">
[33] Fix | Delete
<?php if ( 'smush-integrations' === $current_tab || 'smush-bulk' === $current_tab ) : ?>
[34] Fix | Delete
<span class="sui-field-prefix">
[35] Fix | Delete
<?php esc_html_e( 'Smush will automatically check for any images that need re-smushing.', 'wp-smushit' ); ?>
[36] Fix | Delete
</span>
[37] Fix | Delete
<?php endif; ?>
[38] Fix | Delete
[39] Fix | Delete
<button type="submit" class="sui-button sui-button-blue" id="save-settings-button" aria-live="polite" <?php disabled( $enabled, false ); ?>>
[40] Fix | Delete
<span class="sui-button-text-default sui-loading-text">
[41] Fix | Delete
<span class="sui-icon-save" aria-hidden="true"></span> <?php echo esc_html( $button_text ); ?>
[42] Fix | Delete
</span>
[43] Fix | Delete
[44] Fix | Delete
<?php if ( ! empty( $button_msg ) ) : ?>
[45] Fix | Delete
<span class="sui-button-text-onload">
[46] Fix | Delete
<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
[47] Fix | Delete
<?php echo esc_html( $button_msg ); ?>
[48] Fix | Delete
</span>
[49] Fix | Delete
<?php else : ?>
[50] Fix | Delete
<span class="sui-icon-loader sui-loading" aria-hidden="true"></span>
[51] Fix | Delete
<?php endif; ?>
[52] Fix | Delete
</button>
[53] Fix | Delete
</div>
[54] Fix | Delete
[55] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function