twentythirteen_wpcom_gallery_atts

Sets the image size in featured galleries to large.

Description

(array) twentythirteen_wpcom_gallery_atts( (array) $atts ); 

This was dropped from core theme in

Returns (array)

The filtered attribute list.

Parameters (1)

0. $atts (array)
Combined and filtered attribute list.

Usage

  1. if ( !function_exists( 'twentythirteen_wpcom_gallery_atts' ) ) { 
  2. require_once '/inc/wpcom.php'; 
  3.  
  4. // Combined and filtered attribute list. 
  5. $atts = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = twentythirteen_wpcom_gallery_atts($atts); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/wpcom.php  
  1. function twentythirteen_wpcom_gallery_atts( $atts ) { 
  2. if ( has_post_format( 'gallery' ) && ! is_single() ) 
  3. $atts['size'] = wp_is_mobile() ? 'thumbnail' : 'twentythirteen-gallery-post'; 
  4.  
  5. return $atts;