From 3f48b8cb38b9d5fedd1e38e8dac832dde2a43c7e Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Tue, 29 Dec 2015 15:18:32 +1100 Subject: [PATCH] Increase player gallery thumbnail size and clean up variables --- templates/player-gallery-thumbnail.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/templates/player-gallery-thumbnail.php b/templates/player-gallery-thumbnail.php index 19e058a9..c7cb7f1d 100644 --- a/templates/player-gallery-thumbnail.php +++ b/templates/player-gallery-thumbnail.php @@ -11,11 +11,10 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly $defaults = array( 'id' => null, - 'performance' => array(), 'icontag' => 'dt', 'captiontag' => 'dd', 'caption' => null, - 'size' => 'gallery', + 'size' => 'medium', 'link_posts' => get_option( 'sportspress_link_players', 'yes' ) == 'yes' ? true : false, ); @@ -33,9 +32,6 @@ if ( $captiontag && $caption ) if ( $link_posts ) $caption = '' . $caption . ''; -if ( isset( $limit ) && $i >= $limit ) - continue; - if ( has_post_thumbnail( $id ) ) $thumbnail = get_the_post_thumbnail( $id, $size ); else