Make WordPress Core


Ignore:
Timestamp:
11/08/2013 05:30:45 AM (12 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/functions.php

    r26037 r26047  
    6565    add_theme_support( 'automatic-feed-links' );
    6666
    67     // Enable support for Post Thumbnails.
     67    // Enable support for Post Thumbnails, and declare two sizes.
    6868    add_theme_support( 'post-thumbnails' );
    69 
    70     // Add several sizes for Post Thumbnails.
    71     add_image_size( 'post-thumbnail-slider', 1038, 576, true );
    72     add_image_size( 'post-thumbnail-full-width', 1038, 0 );
    73     add_image_size( 'post-thumbnail-grid', 672, 372, true );
    74     add_image_size( 'post-thumbnail', 672, 0 );
     69    add_image_size( 'post-thumbnail-full-width', 1038, 576, true );
     70    add_image_size( 'post-thumbnail', 672, 372, true );
    7571
    7672    // This theme uses wp_nav_menu() in two locations.
Note: See TracChangeset for help on using the changeset viewer.