Ticket #18006: 18006.diff
File 18006.diff, 899 bytes (added by , 13 years ago) |
---|
-
wp-content/themes/twentyeleven/header.php
93 93 // The header image 94 94 // Check if this is a post or page, if it has a thumbnail, and if it's a big one 95 95 if ( is_singular() && has_post_thumbnail( $post->ID ) && 96 ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width )) ) &&96 ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && 97 97 $image[1] >= $header_image_width ) : 98 98 // Houston, we have a new header image! 99 99 echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );