mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-23 06:55:28 +00:00
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:
parent
6e26ca2648
commit
d78ac132af
@ -1762,7 +1762,7 @@ function get_media_item( $attachment_id, $args = null ) {
|
|||||||
if ( 'image' === $type && $calling_post_id
|
if ( 'image' === $type && $calling_post_id
|
||||||
&& current_theme_supports( 'post-thumbnails', get_post_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' )
|
&& 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 );
|
$calling_post = get_post( $calling_post_id );
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user