Skip to content

Commit 0723e8f

Browse files
Coding Standards: Remove redundant check in wp_read_image_metadata().
This logical branch is only reachable if `$exif_description` is already verified as truthy a few lines above. Follow-up to [57267]. Props justlevine. See #63268. git-svn-id: https://develop.svn.wordpress.org/trunk@60475 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 8900f0a commit 0723e8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)