Make WordPress Core

Changeset 60475


Ignore:
Timestamp:
07/16/2025 12:55:59 PM (8 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/image.php

    r59897 r60475  
    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;
Note: See TracChangeset for help on using the changeset viewer.