From 71dbe18ae6cbee897306ed3c6d3c84b87871d7f3 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Thu, 8 May 2014 16:07:21 +1000 Subject: [PATCH] Show league table caption by default --- includes/shortcodes/class-sp-shortcode-league-table.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/shortcodes/class-sp-shortcode-league-table.php b/includes/shortcodes/class-sp-shortcode-league-table.php index 9c467d83..f9436f6e 100644 --- a/includes/shortcodes/class-sp-shortcode-league-table.php +++ b/includes/shortcodes/class-sp-shortcode-league-table.php @@ -19,6 +19,9 @@ class SP_Shortcode_League_Table { if ( ! isset( $atts['id'] ) && isset( $atts[0] ) && is_numeric( $atts[0] ) ) $atts['id'] = $atts[0]; + if ( ! isset( $atts['show_caption'] ) ) + $atts['show_caption'] = true; + sp_get_template( 'league-table.php', $atts ); } }