Make WordPress Core


Ignore:
Timestamp:
11/14/2013 04:49:19 AM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: simplify and prefix post thumbnail sizes, props obenland. See #25946.

File:
1 edited

Legend:

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

    r26151 r26152  
    6767    // Enable support for Post Thumbnails, and declare two sizes.
    6868    add_theme_support( 'post-thumbnails' );
    69     add_image_size( 'post-thumbnail-full-width', 1038, 576, true );
    70     add_image_size( 'post-thumbnail', 672, 372, true );
     69    set_post_thumbnail_size( 672, 372, true );
     70    add_image_size( 'twentyfourteen-full-width', 1038, 576, true );
    7171
    7272    // This theme uses wp_nav_menu() in two locations.
Note: See TracChangeset for help on using the changeset viewer.