diff --git a/readme.txt b/readme.txt index de38ac55..104ca060 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: sport, sports, sports journalism, teams, team management, fixtures, result Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=support@themeboy.com&item_name=Donation+for+SportsPress Requires at least: 3.8 Tested up to: 3.9 -Stable tag: 0.9.2 +Stable tag: 0.9.3 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -119,6 +119,9 @@ Yes, CSV importers are included with the plugin. Go to Tools > Import and choose == Changelog === += 0.9.3 = +* Fix - Player list columns not displaying. + = 0.9.2 = * Fix - Duplicate editor fields in team edit screen. diff --git a/sportspress.php b/sportspress.php index 2cf96aa9..f4b9ee0e 100644 --- a/sportspress.php +++ b/sportspress.php @@ -3,7 +3,7 @@ * Plugin Name: SportsPress * Plugin URI: http://wordpress.org/plugins/sportspress * Description: Manage your club and its players, staff, events, league tables, and player lists. - * Version: 0.9.2 + * Version: 0.9.3 * Author: ThemeBoy * Author URI: http://themeboy.com * Requires at least: 3.8 @@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) : * Main SportsPress Class * * @class SportsPress - * @version 0.9.2 + * @version 0.9.3 */ final class SportsPress { /** * @var string */ - public $version = '0.9.2'; + public $version = '0.9.3'; /** * @var SporsPress The single instance of the class diff --git a/templates/player-list.php b/templates/player-list.php index 080d97fd..35b73bc1 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -31,9 +31,12 @@ if ( isset( $performance ) ) $columns = $performance; $list = new SP_Player_List( $id ); -$list->columns = $columns; +if ( isset( $columns ) && null !== $columns ): + $list->columns = $columns; +endif; $data = $list->data(); + // The first row should be column labels $labels = $data[0];