Apply player list limit to player galleries

This commit is contained in:
Brian Miyaji
2016-12-07 17:26:00 +11:00
parent 3ca3485b28
commit 0360378c5f

View File

@@ -29,6 +29,12 @@ $defaults = array(
extract( $defaults, EXTR_SKIP );
// Determine number of players to display
if ( -1 === $number ):
$number = (int) get_post_meta( $id, 'sp_number', true );
if ( $number <= 0 ) $number = -1;
endif;
$itemtag = tag_escape( $itemtag );
$captiontag = tag_escape( $captiontag );
$icontag = tag_escape( $icontag );