WordPress.org

Make WordPress Core

Ticket #24555: 24555.diff

File 24555.diff, 1.9 KB (added by obenland, 10 months ago)
  • wp-content/themes/twentythirteen/style.css

     
    15231523        width: 100%; 
    15241524} 
    15251525 
    1526 .blog .format-gallery .gallery-item:first-child, 
    1527 .archive .format-gallery .gallery-item:first-child, 
    1528 .search .format-gallery .gallery-item:first-child { 
    1529         height: 300px; 
    1530         width: 300px; 
    1531 } 
    1532  
    1533 .blog .format-gallery .gallery-item:first-child img, 
    1534 .archive .format-gallery .gallery-item:first-child img, 
    1535 .search .format-gallery .gallery-item:first-child img { 
    1536         max-height: 300px; 
    1537 } 
    1538  
    1539 .blog .format-gallery .gallery-item:first-child .portrait img, 
    1540 .archive .format-gallery .gallery-item:first-child .portrait img, 
    1541 .search .format-gallery .gallery-item:first-child .portrait img { 
    1542         max-height: none; 
    1543         max-width: 300px; 
    1544 } 
    1545  
    15461526.blog .format-gallery .gallery-item .gallery-icon, 
    15471527.archive .format-gallery .gallery-item .gallery-icon, 
    15481528.search .format-gallery .gallery-item .gallery-icon { 
  • wp-content/themes/twentythirteen/functions.php

     
    498498} 
    499499 
    500500/** 
    501  * Sets the image size in featured galleries to large. 
    502  * 
    503  * @since Twenty Thirteen 1.0 
    504  * 
    505  * @param array $atts Combined and filtered attribute list. 
    506  * @return array The filtered attribute list. 
    507  */ 
    508 function twentythirteen_gallery_atts( $atts ) { 
    509         if ( has_post_format( 'gallery' ) && ! is_single() ) 
    510                 $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'medium'; 
    511  
    512         return $atts; 
    513 } 
    514 add_filter( 'shortcode_atts_gallery', 'twentythirteen_gallery_atts' ); 
    515  
    516 /** 
    517501 * Extends the default WordPress body classes. 
    518502 * 
    519503 * Adds body classes to denote: