WordPress.org

Make WordPress Core

Changeset 24338


Ignore:
Timestamp:
05/23/13 20:39:51 (11 months ago)
Author:
lancewillett
Message:

Twenty Thirteen: revert adding new image size for galleries., Using existing medium size instead, and thumbnail for mobile views. See #24307.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentythirteen/functions.php

    r24333 r24338  
    9898    // Register custom image sizes for image and gallery post formats. 
    9999    add_image_size( 'twentythirteen-image-post', 724, 1288 ); 
    100     add_image_size( 'twentythirteen-gallery-post', 300, 300, true ); 
    101100 
    102101    // This theme uses its own gallery styles. 
     
    452451function twentythirteen_gallery_atts( $atts ) { 
    453452    if ( has_post_format( 'gallery' ) && ! is_single() ) 
    454         $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'twentythirteen-gallery-post'; 
     453        $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'medium'; 
    455454 
    456455    return $atts; 
Note: See TracChangeset for help on using the changeset viewer.