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
This commit is contained in:
Lance Willett 2013-05-23 20:39:51 +00:00
parent 7cc15a2e7f
commit 1fa2b84ae9
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}