Skip to content

Commit

Permalink
Remove use of empty()
Browse files Browse the repository at this point in the history
  • Loading branch information
b1ink0 committed Nov 21, 2024
1 parent 536c799 commit fa34edf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/webp-uploads/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ function webp_uploads_get_image_sizes_additional_mime_type_support(): array {
foreach ( $additional_sizes as $size => $size_details ) {
if ( isset( $size_details['provide_additional_mime_types'] ) ) {
// Give priority to the 'provide_additional_mime_types' property.
$allowed_sizes[ $size ] = ! empty( $size_details['provide_additional_mime_types'] );
$allowed_sizes[ $size ] = (bool) $size_details['provide_additional_mime_types'];
} else {
// If 'provide_additional_mime_types' is not set, use the fallback all sizes setting.
$allowed_sizes[ $size ] = webp_uploads_is_fallback_all_sizes_enabled();
Expand Down

0 comments on commit fa34edf

Please sign in to comment.