Make WordPress Core


Ignore:
Timestamp:
10/28/2013 05:57:57 PM (13 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: clean up post thumbnail naming. Props iamtakashi, fixes #25718.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php

    r25856 r25971  
    160160
    161161/**
    162  * Displays an optional featured image, with an anchor element
     162 * Displays an optional post thumbnail, with an anchor element
    163163 * when on index views, and a div element when on a single view.
    164164 *
     
    172172        ?>
    173173
    174         <div class="featured-thumbnail">
    175                 <?php the_post_thumbnail( 'featured-thumbnail-large' ); ?>
     174        <div class="post-thumbnail">
     175                <?php the_post_thumbnail( 'post-thumbnail' ); ?>
    176176        </div>
    177177
    178178        <?php else : ?>
    179179
    180         <a class="featured-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
     180        <a class="post-thumbnail" href="<?php the_permalink(); ?>" rel="<?php the_ID(); ?>">
    181181        <?php if ( has_post_thumbnail() ) :
    182                 the_post_thumbnail( 'featured-thumbnail-large' );
     182                the_post_thumbnail( 'post-thumbnail' );
    183183        else : ?>
    184184                <p class="screen-reader-text"><?php _e( 'No featured image.', 'twentyfourteen' ); ?></p>
Note: See TracChangeset for help on using the changeset viewer.