Make WordPress Core

Changeset 15783


Ignore:
Timestamp:
10/13/2010 04:53:39 AM (14 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

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

    r15391 r15783  
    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.