Make WordPress Core

Changeset 17300


Ignore:
Timestamp:
01/14/2011 07:16:21 PM (14 years ago)
Author:
nacin
Message:

Check for theme support before calling has_post_thumbnail for child theme compatibility. see #14903.

File:
1 edited

Legend:

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

    r16434 r17300  
    6868                <?php
    6969                    // Check if this is a post or page, if it has a thumbnail, and if it's a big one
    70                     if ( is_singular() &&
     70                    if ( is_singular() && current_theme_supports( 'post-thumbnails' ) &&
    7171                            has_post_thumbnail( $post->ID ) &&
    7272                            ( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'post-thumbnail' ) ) &&
Note: See TracChangeset for help on using the changeset viewer.