Make WordPress Core


Ignore:
Timestamp:
08/23/2010 05:58:55 AM (14 years ago)
Author:
nacin
Message:

Check for header image before showing it, in Twenty Ten. props koopersmith, see #14486 for trunk.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r15392 r15520  
    7474                        // Houston, we have a new header image!
    7575                        echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    76                     else : ?>
     76                    elseif ( get_header_image() ) : ?>
    7777                        <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    7878                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.