Make WordPress Core

Changeset 59751


Ignore:
Timestamp:
02/02/2025 11:15:55 AM (4 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use strict comparison in get_media_item().

Follow-up to [12081], [12351].

Props aristath, poena, afercia, SergeyBiryukov.
See #62279.

File:
1 edited

Legend:

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

    r59750 r59751  
    17631763        && current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) )
    17641764        && post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' )
    1765         && get_post_thumbnail_id( $calling_post_id ) != $attachment_id
     1765        && get_post_thumbnail_id( $calling_post_id ) !== $attachment_id
    17661766    ) {
    17671767
Note: See TracChangeset for help on using the changeset viewer.