Skip to content

Commit c608cc8

Browse files
committed
code quality: remove always-true check from wp_read_image_metadata()
1 parent 8ef41f2 commit c608cc8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ function wp_read_image_metadata( $file ) {
967967
}
968968

969969
// If both user comments and description are present.
970-
if ( empty( $meta['caption'] ) && $exif_description && $exif_usercomment ) {
970+
if ( empty( $meta['caption'] ) && $exif_usercomment ) {
971971
if ( ! empty( $meta['title'] ) && $exif_description === $meta['title'] ) {
972972
$caption = $exif_usercomment;
973973
} else {

0 commit comments

Comments
 (0)