Skip to content

Commit bcdca3f

Browse files
Coding Standards: Use strict comparison in get_media_item().
Follow-up to [12081], [12351]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. git-svn-id: https://develop.svn.wordpress.org/trunk@59751 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 4180ca6 commit bcdca3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wp-admin/includes/media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ function get_media_item( $attachment_id, $args = null ) {
17621762
if ( 'image' === $type && $calling_post_id
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

17681768
$calling_post = get_post( $calling_post_id );

0 commit comments

Comments
 (0)