diff --git a/wp-content/themes/twentyten/header.php b/wp-content/themes/twentyten/header.php index 17dd16c7a5..a15e5b52fc 100644 --- a/wp-content/themes/twentyten/header.php +++ b/wp-content/themes/twentyten/header.php @@ -87,12 +87,13 @@ if ( is_singular() && get_option( 'thread_comments' ) ) { } // Check if this is a post or page, if it has a thumbnail, and if it's a big one. + $image = false; if ( is_singular() && has_post_thumbnail( $post->ID ) ) { $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ); - if ( $image && $image[1] >= $header_image_width ) { - // Houston, we have a new header image! - echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); - } + } + if ( $image && $image[1] >= $header_image_width ) { + // Houston, we have a new header image! + echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' ); } else { // Compatibility with versions of WordPress prior to 3.4. if ( function_exists( 'get_custom_header' ) ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index c1ba617330..e816b4f21b 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.7-beta2-50360'; +$wp_version = '5.7-beta2-50361'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.