Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/enhancement/2554-prevent-bigger-…
Browse files Browse the repository at this point in the history
…webp' into enhancement/2554-prevent-bigger-webp
  • Loading branch information
CrochetFeve0251 committed Nov 9, 2023
2 parents 8d0cca7 + a1d1d14 commit 1e0fdf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/functions/admin-ui.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function get_imagify_attachment_optimization_text( $process ) {
$output .= $output_before . '<span class="data">' . __( 'Level:', 'imagify' ) . '</span> <strong>' . $optimization_level . '</strong>' . $output_after;

if ( $media->is_image() ) {
$has_webp = $process->has_webp() ? __( 'Yes', 'imagify' ) : __( 'No', 'imagify' );
$has_webp = $process->has_webp() && ! key_exists( 'message', $optimized_data ) ? __( 'Yes', 'imagify' ) : __( 'No', 'imagify' );
$output .= $output_before . '<span class="data">' . __( 'WebP generated:', 'imagify' ) . '</span> <strong class="big">' . esc_html( $has_webp ) . '</strong>' . $output_after;

$total_optimized_thumbnails = $data->get_optimized_sizes_count();
Expand Down

0 comments on commit 1e0fdf4

Please sign in to comment.