blob: d2552b85c3a9257948f1ec9a3ae80952ee7d9c9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
--- ../twentyeleven/header.php 2011-09-29 13:42:35.000000000 -0400
+++ header.php 2011-09-29 15:52:58.000000000 -0400
@@ -81,18 +81,7 @@
if ( ! empty( $header_image ) ) :
?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
- <?php
- // The header image
- // Check if this is a post or page, if it has a thumbnail, and if it's a big one
- if ( is_singular() &&
- has_post_thumbnail( $post->ID ) &&
- ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
- $image[1] >= HEADER_IMAGE_WIDTH ) :
- // Houston, we have a new header image!
- echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
- else : ?>
- <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
- <?php endif; // end check for featured image or standard header ?>
+ <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
</a>
<?php endif; // end check for removed header image ?>
|