Skip to content

Commit

Permalink
Coding Standards: Use strict comparison in get_media_item().
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SergeyBiryukov committed Feb 2, 2025
1 parent 4180ca6 commit bcdca3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wp-admin/includes/media.php
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ function get_media_item( $attachment_id, $args = null ) {
if ( 'image' === $type && $calling_post_id
&& current_theme_supports( 'post-thumbnails', get_post_type( $calling_post_id ) )
&& post_type_supports( get_post_type( $calling_post_id ), 'thumbnail' )
&& get_post_thumbnail_id( $calling_post_id ) != $attachment_id
&& get_post_thumbnail_id( $calling_post_id ) !== $attachment_id
) {

$calling_post = get_post( $calling_post_id );
Expand Down

0 comments on commit bcdca3f

Please sign in to comment.