From 1fa2b84ae9bf1253e3ba09124e6cf901dd53f50e Mon Sep 17 00:00:00 2001 From: Lance Willett Date: Thu, 23 May 2013 20:39:51 +0000 Subject: [PATCH] Twenty Thirteen: revert adding new image size for galleries., Using existing medium size instead, and thumbnail for mobile views. See #24307. git-svn-id: http://core.svn.wordpress.org/trunk@24338 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-content/themes/twentythirteen/functions.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-content/themes/twentythirteen/functions.php b/wp-content/themes/twentythirteen/functions.php index a8f3e54d0f..64ff2c2ac1 100644 --- a/wp-content/themes/twentythirteen/functions.php +++ b/wp-content/themes/twentythirteen/functions.php @@ -97,7 +97,6 @@ function twentythirteen_setup() { // Register custom image sizes for image and gallery post formats. add_image_size( 'twentythirteen-image-post', 724, 1288 ); - add_image_size( 'twentythirteen-gallery-post', 300, 300, true ); // This theme uses its own gallery styles. add_filter( 'use_default_gallery_style', '__return_false' ); @@ -451,7 +450,7 @@ function twentythirteen_get_link_url() { */ function twentythirteen_gallery_atts( $atts ) { if ( has_post_format( 'gallery' ) && ! is_single() ) - $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'twentythirteen-gallery-post'; + $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'medium'; return $atts; }