Make WordPress Core

Ticket #14486: 14486.diff

File 14486.diff, 828 bytes (added by koopersmith, 15 years ago)
  • wp-content/themes/twentyten/header.php

     
    7373                                                        $image[1] >= HEADER_IMAGE_WIDTH ) :
    7474                                                // Houston, we have a new header image!
    7575                                                echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );
    76                                         else : ?>
    77                                                 <img src="<?php header_image(); ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
     76                                        elseif ( $maybe_header_image = get_header_image() ) : ?>
     77                                                <img src="<?php echo $maybe_header_image; ?>" width="<?php echo HEADER_IMAGE_WIDTH; ?>" height="<?php echo HEADER_IMAGE_HEIGHT; ?>" alt="" />
    7878                                        <?php endif; ?>
    7979                        </div><!-- #branding -->
    8080