summaryrefslogtreecommitdiff
path: root/header.php.patch
diff options
context:
space:
mode:
Diffstat (limited to 'header.php.patch')
-rw-r--r--header.php.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/header.php.patch b/header.php.patch
new file mode 100644
index 0000000..d2552b8
--- /dev/null
+++ b/header.php.patch
@@ -0,0 +1,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 ?>
+