Fix player list columns issue tag version 0.9.3

This commit is contained in:
Brian Miyaji
2014-05-19 09:07:02 +10:00
parent e2c84466ea
commit 17a011823a
3 changed files with 11 additions and 5 deletions

View File

@@ -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 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 Requires at least: 3.8
Tested up to: 3.9 Tested up to: 3.9
Stable tag: 0.9.2 Stable tag: 0.9.3
License: GPLv3 License: GPLv3
License URI: http://www.gnu.org/licenses/gpl-3.0.html 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 === == Changelog ===
= 0.9.3 =
* Fix - Player list columns not displaying.
= 0.9.2 = = 0.9.2 =
* Fix - Duplicate editor fields in team edit screen. * Fix - Duplicate editor fields in team edit screen.

View File

@@ -3,7 +3,7 @@
* Plugin Name: SportsPress * Plugin Name: SportsPress
* Plugin URI: http://wordpress.org/plugins/sportspress * Plugin URI: http://wordpress.org/plugins/sportspress
* Description: Manage your club and its players, staff, events, league tables, and player lists. * 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: ThemeBoy
* Author URI: http://themeboy.com * Author URI: http://themeboy.com
* Requires at least: 3.8 * Requires at least: 3.8
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
* Main SportsPress Class * Main SportsPress Class
* *
* @class SportsPress * @class SportsPress
* @version 0.9.2 * @version 0.9.3
*/ */
final class SportsPress { final class SportsPress {
/** /**
* @var string * @var string
*/ */
public $version = '0.9.2'; public $version = '0.9.3';
/** /**
* @var SporsPress The single instance of the class * @var SporsPress The single instance of the class

View File

@@ -31,9 +31,12 @@ if ( isset( $performance ) )
$columns = $performance; $columns = $performance;
$list = new SP_Player_List( $id ); $list = new SP_Player_List( $id );
if ( isset( $columns ) && null !== $columns ):
$list->columns = $columns; $list->columns = $columns;
endif;
$data = $list->data(); $data = $list->data();
// The first row should be column labels // The first row should be column labels
$labels = $data[0]; $labels = $data[0];