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...
File: directory-meta-box.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Directory compress 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 array $images Array of images with errors.
[7] Fix | Delete
* @var int $errors Number of errors.
[8] Fix | Delete
*
[9] Fix | Delete
* @var Smush\App\Abstract_Page $this Dashboard page.
[10] Fix | Delete
*/
[11] Fix | Delete
[12] Fix | Delete
if ( ! defined( 'WPINC' ) ) {
[13] Fix | Delete
die;
[14] Fix | Delete
}
[15] Fix | Delete
[16] Fix | Delete
?>
[17] Fix | Delete
[18] Fix | Delete
<p>
[19] Fix | Delete
<?php esc_html_e( 'In addition to smushing your media uploads, you may want to smush non WordPress images that are outside of your uploads directory. Get started by adding files and folders you wish to optimize.', 'wp-smushit' ); ?>
[20] Fix | Delete
</p>
[21] Fix | Delete
[22] Fix | Delete
<?php if ( ! empty( $images ) ) : ?>
[23] Fix | Delete
<div class="sui-notice sui-notice-warning">
[24] Fix | Delete
<div class="sui-notice-content">
[25] Fix | Delete
<div class="sui-notice-message">
[26] Fix | Delete
<span class="sui-notice-icon sui-icon-warning-alert sui-md" aria-hidden="true"></span>
[27] Fix | Delete
<p>
[28] Fix | Delete
<?php
[29] Fix | Delete
printf( /* translators: %d - number of failed images */
[30] Fix | Delete
esc_html__( "%d images failed to be optimized. This is usually because they no longer exist, or we can't optimize the file format.", 'wp-smushit' ),
[31] Fix | Delete
(int) $errors
[32] Fix | Delete
);
[33] Fix | Delete
?>
[34] Fix | Delete
</p>
[35] Fix | Delete
</div>
[36] Fix | Delete
</div>
[37] Fix | Delete
</div>
[38] Fix | Delete
<div class="smush-final-log sui-margin-bottom">
[39] Fix | Delete
<div class="smush-bulk-errors">
[40] Fix | Delete
<?php foreach ( $images as $image ) : ?>
[41] Fix | Delete
<div class="smush-bulk-error-row">
[42] Fix | Delete
<div class="smush-bulk-image-data">
[43] Fix | Delete
<i class="sui-icon-photo-picture" aria-hidden="true"></i>
[44] Fix | Delete
<span class="smush-image-name"><?php echo esc_html( $image['path'] ); ?></span>
[45] Fix | Delete
<span class="smush-image-error"><?php echo esc_html( $image['error'] ); ?></span>
[46] Fix | Delete
</div>
[47] Fix | Delete
</div>
[48] Fix | Delete
<?php endforeach; ?>
[49] Fix | Delete
</div>
[50] Fix | Delete
<?php if ( $errors > 20 ) : ?>
[51] Fix | Delete
<p class="sui-description">
[52] Fix | Delete
<?php
[53] Fix | Delete
printf( /* translators: %d: number of images with errors */
[54] Fix | Delete
esc_html__( 'Showing 20 of %d failed optimizations. Fix or remove these images and run another Directory Smush.', 'wp-smushit' ),
[55] Fix | Delete
absint( $errors )
[56] Fix | Delete
);
[57] Fix | Delete
?>
[58] Fix | Delete
</p>
[59] Fix | Delete
<?php endif; ?>
[60] Fix | Delete
</div>
[61] Fix | Delete
<a href="<?php echo esc_url( $this->get_url( 'smush-directory' ) ); ?>&scan=done" class="sui-button sui-button-ghost">
[62] Fix | Delete
<span class="sui-icon-eye" aria-hidden="true"></span>
[63] Fix | Delete
<?php esc_html_e( 'View All', 'wp-smushit' ); ?>
[64] Fix | Delete
</a>
[65] Fix | Delete
<?php else : ?>
[66] Fix | Delete
<a href="<?php echo esc_url( $this->get_url( 'smush-directory' ) ); ?>&start" class="sui-button sui-button-blue">
[67] Fix | Delete
<?php esc_html_e( 'Choose Directory', 'wp-smushit' ); ?>
[68] Fix | Delete
</a>
[69] Fix | Delete
<?php endif; ?>
[70] Fix | Delete
[71] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function