Skip to content

Commit

Permalink
Remove use of empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshpanchal27 committed Aug 14, 2024
1 parent a885d7b commit 0f9fb41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/webp-uploads/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ function webp_uploads_get_mime_type_image( int $attachment_id, string $src, stri
if ( isset( $metadata['sizes'] ) && is_array( $metadata['sizes'] ) ) {
foreach ( $metadata['sizes'] as $size => $size_data ) {

if ( empty( $size_data['file'] ) ) {
if ( ! isset( $size_data['file'] ) ) {
continue;
}

Expand Down

0 comments on commit 0f9fb41

Please sign in to comment.