Changeset 24720 for trunk/wp-content/themes/twentythirteen/functions.php
- Timestamp:
- 07/17/2013 04:51:06 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/twentythirteen/functions.php
r24682 r24720 502 502 503 503 /** 504 * Sets the image size in featured galleries to large.505 *506 * @since Twenty Thirteen 1.0507 *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 /**520 504 * Extends the default WordPress body classes. 521 505 *
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)