Make WordPress Core


Ignore:
Timestamp:
11/08/2013 05:30:45 AM (11 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: performance win by reducing the number of post thumbnail sizes needed in the theme. Props iamtakashi, closes #25876.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php

    r25979 r26047  
    1414        if ( has_post_thumbnail() ) :
    1515            if ( 'grid' == get_theme_mod( 'featured_content_layout' ) )
    16                 the_post_thumbnail( 'post-thumbnail-grid' );
     16                the_post_thumbnail( 'post-thumbnail' );
    1717            else
    18                 the_post_thumbnail( 'post-thumbnail-slider' );
     18                the_post_thumbnail( 'post-thumbnail-full-width' );
    1919        endif;
    2020    ?>
     
    2222
    2323    <header class="entry-header">
    24         <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) &&twentyfourteen_categorized_blog() ) : ?>
     24        <?php if ( in_array( 'category', get_object_taxonomies( get_post_type() ) ) && twentyfourteen_categorized_blog() ) : ?>
    2525        <div class="entry-meta">
    2626            <span class="cat-links"><?php echo get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'twentyfourteen' ) ); ?></span>
Note: See TracChangeset for help on using the changeset viewer.