Make WordPress Core


Ignore:
Timestamp:
07/17/2013 04:51:06 AM (13 years ago)
Author:
lancewillett
Message:

Twenty Thirteen: improve gallery styles to ensure both single and index views are displayed consistently. Closes #24555.

File:
1 edited

Legend:

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

    r24682 r24720  
    502502
    503503/**
    504  * Sets the image size in featured galleries to large.
    505  *
    506  * @since Twenty Thirteen 1.0
    507  *
    508  * @param array $atts Combined and filtered attribute list.
    509  * @return array The filtered attribute list.
    510  */
    511 function twentythirteen_gallery_atts( $atts ) {
    512         if ( has_post_format( 'gallery' ) && ! is_single() )
    513                 $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'medium';
    514 
    515         return $atts;
    516 }
    517 add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' );
    518 
    519 /**
    520504 * Extends the default WordPress body classes.
    521505 *
Note: See TracChangeset for help on using the changeset viewer.