Twenty Thirteen: revert adding new image size for galleries., Using existing medium size instead, and thumbnail for mobile views. See #24307.
git-svn-id: https://develop.svn.wordpress.org/trunk@24338 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c4ee22898d
commit
bb183fdfc7
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user