: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if ( 'Super-Smush' === $button_txt ) {
$html .= "<a href='#' class='wp-smush-send' data-id='{$id}'>{$button_txt}</a>";
if ( get_post_meta( $id, 'wp-smush-ignore-bulk', true ) ) {
$nonce = wp_create_nonce( 'wp-smush-remove-skipped' );
$html .= " | <a href='#' class='wp-smush-remove-skipped' data-id={$id} data-nonce={$nonce}>" . esc_html__( 'Show in bulk Smush', 'wp-smushit' ) . '</a>';
$html .= " | <a href='#' class='smush-ignore-image' data-id='{$id}'>" . esc_html__( 'Ignore', 'wp-smushit' ) . '</a>';
$html .= self::progress_bar();
* Returns the HTML for progress bar
public static function progress_bar() {
return '<span class="spinner wp-smush-progress"></span>';