WordPress.org

Make WordPress Core

Ticket #18006: 18006.diff

File 18006.diff, 899 bytes (added by obenland, 3 years ago)
  • wp-content/themes/twentyeleven/header.php

     
    9393                                        // The header image 
    9494                                        // Check if this is a post or page, if it has a thumbnail, and if it's a big one 
    9595                                        if ( is_singular() && has_post_thumbnail( $post->ID ) && 
    96                                                         ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) ) ) && 
     96                                                        ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) && 
    9797                                                        $image[1] >= $header_image_width ) : 
    9898                                                // Houston, we have a new header image! 
    9999                                                echo get_the_post_thumbnail( $post->ID, 'post-thumbnail' );