Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Check for header image before showing it, in Twenty Ten. props kooper…

…smith, fixes #14486 for 3.0.

git-svn-id: http://svn.automattic.com/wordpress/branches/3.0@15783 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
commit 842d1b4e51088472cfc2580c516a3937b51c0fe9 1 parent 25e2790
nacin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  wp-content/themes/twentyten/header.php
View
2  wp-content/themes/twentyten/header.php
@@ -73,7 +73,7 @@
$image[1] >= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
- else : ?>
+ elseif ( get_header_image() ) : ?>
<img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
<?php endif; ?>
</div><!-- #branding -->
Please sign in to comment.
Something went wrong with that request. Please try again.