Coding Standards: Use strict comparison in get_media_item().
Follow-up to [12081], [12351]. Props aristath, poena, afercia, SergeyBiryukov. See #62279. Built from https://develop.svn.wordpress.org/trunk@59751 git-svn-id: http://core.svn.wordpress.org/trunk@59093 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user