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:
Sergey Biryukov 2025-02-02 11:17:24 +00:00
parent 6e26ca2648
commit d78ac132af
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '6.8-alpha-59750';
$wp_version = '6.8-alpha-59751';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.