diff --git a/wp-admin/includes/media.php b/wp-admin/includes/media.php index 0f988a2dac..24dfef62f5 100644 --- a/wp-admin/includes/media.php +++ b/wp-admin/includes/media.php @@ -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 ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 8fadd406b1..2c264aa0e0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.