From 2ae699bcf260e298a0b52536e26833ab87a4b6f2 Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Fri, 8 Nov 2013 05:30:45 +0000 Subject: [PATCH] Twenty Fourteen: performance win by reducing the number of post thumbnail sizes needed in the theme. Props iamtakashi, closes #25876. git-svn-id: https://develop.svn.wordpress.org/trunk@26047 602fd350-edb4-49c9-b593-d223f7449a82 --- .../themes/twentyfourteen/content-featured-post.php | 6 +++--- src/wp-content/themes/twentyfourteen/functions.php | 10 +++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/wp-content/themes/twentyfourteen/content-featured-post.php b/src/wp-content/themes/twentyfourteen/content-featured-post.php index c832608592..34747dcc74 100644 --- a/src/wp-content/themes/twentyfourteen/content-featured-post.php +++ b/src/wp-content/themes/twentyfourteen/content-featured-post.php @@ -13,15 +13,15 @@
- + diff --git a/src/wp-content/themes/twentyfourteen/functions.php b/src/wp-content/themes/twentyfourteen/functions.php index 18c266863b..5d15351ead 100644 --- a/src/wp-content/themes/twentyfourteen/functions.php +++ b/src/wp-content/themes/twentyfourteen/functions.php @@ -64,14 +64,10 @@ function twentyfourteen_setup() { // Add RSS feed links to for posts and comments. add_theme_support( 'automatic-feed-links' ); - // Enable support for Post Thumbnails. + // Enable support for Post Thumbnails, and declare two sizes. add_theme_support( 'post-thumbnails' ); - - // Add several sizes for Post Thumbnails. - add_image_size( 'post-thumbnail-slider', 1038, 576, true ); - add_image_size( 'post-thumbnail-full-width', 1038, 0 ); - add_image_size( 'post-thumbnail-grid', 672, 372, true ); - add_image_size( 'post-thumbnail', 672, 0 ); + add_image_size( 'post-thumbnail-full-width', 1038, 576, true ); + add_image_size( 'post-thumbnail', 672, 372, true ); // This theme uses wp_nav_menu() in two locations. register_nav_menus( array(