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: recheck-images-notice.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Progress bar block.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WP_Smush
[4] Fix | Delete
*
[5] Fix | Delete
* @var integer $count Total number of images to smush.
[6] Fix | Delete
* @var string $background_in_processing_notice
[7] Fix | Delete
* @var bool $background_processing_enabled
[8] Fix | Delete
*/
[9] Fix | Delete
use Smush\Core\Media_Library\Background_Media_Library_Scanner;
[10] Fix | Delete
[11] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[12] Fix | Delete
die;
[13] Fix | Delete
}
[14] Fix | Delete
$background_scan_status = Background_Media_Library_Scanner::get_instance()->get_background_process()->get_status();
[15] Fix | Delete
$recheck_images_notice = __( 'Some images might need to be rechecked to ensure statistical data is accurate.', 'wp-smushit' );
[16] Fix | Delete
$docs_link = $this->get_utm_link(
[17] Fix | Delete
array(
[18] Fix | Delete
'utm_campaign' => 'smush_troubleshooting_docs',
[19] Fix | Delete
),
[20] Fix | Delete
'https://wpmudev.com/docs/wpmu-dev-plugins/smush/#troubleshooting-guide'
[21] Fix | Delete
);
[22] Fix | Delete
?>
[23] Fix | Delete
<div class="sui-notice sui-notice-warning wp-smush-recheck-images-notice-warning">
[24] Fix | Delete
<div class="sui-notice-content">
[25] Fix | Delete
<div class="sui-notice-message">
[26] Fix | Delete
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
[27] Fix | Delete
<p>
[28] Fix | Delete
<?php if ( $background_scan_status->is_dead() ) : ?>
[29] Fix | Delete
<span data-original-text="<?php echo esc_attr( $recheck_images_notice ); ?>">
[30] Fix | Delete
<?php
[31] Fix | Delete
printf(
[32] Fix | Delete
/* translators: 1: Open span tag <span>, 2: Open a link, 3: Close the link, 4: Close span tag </span>*/
[33] Fix | Delete
esc_html__( 'Scan failed due to limited resources on your site. We have adjusted the scan to use fewer resources the next time. %1$sPlease retry or refer to our %2$stroubleshooting guide%3$s to help resolve this.%4$s', 'wp-smushit' ),
[34] Fix | Delete
'<span style="display:block;margin-top:10px;margin-bottom:5px">',
[35] Fix | Delete
'<a style="text-decoration:underline" target="_blank" href="' . esc_url( $docs_link ) . '">',
[36] Fix | Delete
'</a>',
[37] Fix | Delete
'</span>'
[38] Fix | Delete
);
[39] Fix | Delete
?>
[40] Fix | Delete
</span>
[41] Fix | Delete
<?php else : ?>
[42] Fix | Delete
<span>
[43] Fix | Delete
<?php echo esc_html( $recheck_images_notice ); ?>
[44] Fix | Delete
</span>
[45] Fix | Delete
<?php endif; ?>
[46] Fix | Delete
<a href="#" class="wp-smush-trigger-background-scan">
[47] Fix | Delete
<?php esc_html_e( 'Re-check Now', 'wp-smushit' ); ?>
[48] Fix | Delete
</a>
[49] Fix | Delete
</p>
[50] Fix | Delete
</div>
[51] Fix | Delete
<div class="sui-notice-actions"><button class="sui-button-icon" type="button"><span class="sui-icon-check" aria-hidden="true"></span><span class="sui-screen-reader-text"><?php esc_html_e( 'Close this notice', 'wp-smushit' ); ?></span></button></div>
[52] Fix | Delete
</div>
[53] Fix | Delete
</div>
[54] Fix | Delete
[55] Fix | Delete
<div class="sui-notice sui-notice-success wp-smush-recheck-images-notice-success sui-hidden">
[56] Fix | Delete
<div class="sui-notice-content">
[57] Fix | Delete
<div class="sui-notice-message">
[58] Fix | Delete
<i class="sui-notice-icon sui-icon-info sui-md" aria-hidden="true"></i>
[59] Fix | Delete
<p>
[60] Fix | Delete
<?php
[61] Fix | Delete
/* translators: %s: Resume Bulk Smush link */
[62] Fix | Delete
printf( esc_html__( 'Image re-check complete. %s', 'wp-smushit' ), '<a href="#" class="wp-smush-trigger-bulk-smush">' . esc_html__( 'Resume Bulk Smush', 'wp-smushit' ) . '</a>' );
[63] Fix | Delete
?>
[64] Fix | Delete
</p>
[65] Fix | Delete
</div>
[66] Fix | Delete
<div class="sui-notice-actions"><button class="sui-button-icon" type="button"><span class="sui-icon-check" aria-hidden="true"></span><span class="sui-screen-reader-text"><?php esc_html_e( 'Close this notice', 'wp-smushit' ); ?></span></button></div>
[67] Fix | Delete
</div>
[68] Fix | Delete
</div>
[69] Fix | Delete
[70] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function