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
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.

View File

@@ -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

View File

@@ -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];