SportsPress – Sports Club & League Manager - Version 2.6.3

Version Description

  • Fix - Assign past teams during player import.
  • Fix - Next team column displaying events furthest away.
  • Fix - Add fallback array_replace function for PHP versions earlier than 5.3.
  • Fix - Add fallback for web hosts that don't support multibyte PHP functions, causing blank player profiles.
Download this release

Release Info

Developer brianmiyaji
Plugin Icon 128x128 SportsPress – Sports Club & League Manager
Version 2.6.3
Comparing to
See all releases

Code changes from version 2.6.1 to 2.6.3

changelog.txt CHANGED
@@ -1,5 +1,20 @@
1
  == SportsPress Changelog ==
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  = 2.6 =
4
  * Feature - Add custom details to events using event specs.
5
  * Feature - Conditional equations for variables.
1
  == SportsPress Changelog ==
2
 
3
+ = 2.6.3 =
4
+ * Fix - Assign past teams during player import.
5
+ * Fix - Next team column displaying events furthest away.
6
+ * Fix - Add fallback array_replace function for PHP versions earlier than 5.3.
7
+ * Fix - Add fallback for web hosts that don't support multibyte PHP functions, causing blank player profiles.
8
+
9
+ = 2.6.2 =
10
+ * Fix - Newly added players from past and current team appearing in player lists.
11
+ * Fix - Player lists appearing empty without league, season, and team selected.
12
+
13
+ = 2.6.1 =
14
+ * Fix - Player lists with a team selected showing players from other teams.
15
+ * Fix - REST API endpoints not resolving for players.
16
+ * Fix - Empty system status page.
17
+
18
  = 2.6 =
19
  * Feature - Add custom details to events using event specs.
20
  * Feature - Conditional equations for variables.
includes/admin/importers/class-sp-player-importer.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Importers
8
- * @version 2.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -123,9 +123,11 @@ if ( class_exists( 'WP_Importer' ) ) {
123
  // Add team to player
124
  add_post_meta( $id, 'sp_team', $team_id );
125
 
126
- // Update current team if first in array
127
  if ( $i == 0 ):
128
  update_post_meta( $id, 'sp_current_team', $team_id );
 
 
129
  endif;
130
 
131
  $i++;
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Importers
8
+ * @version 2.6.3
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
123
  // Add team to player
124
  add_post_meta( $id, 'sp_team', $team_id );
125
 
126
+ // Update current team if first in array, otherwise use as past team
127
  if ( $i == 0 ):
128
  update_post_meta( $id, 'sp_current_team', $team_id );
129
+ else :
130
+ add_post_meta( $id, 'sp_past_team', $team_id );
131
  endif;
132
 
133
  $i++;
includes/admin/post-types/meta-boxes/class-sp-meta-box-outcome-details.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 2.6
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -45,7 +45,7 @@ class SP_Meta_Box_Outcome_Details extends SP_Meta_Box_Config {
45
  </p>
46
  <p><strong><?php _e( 'Abbreviation', 'sportspress' ); ?></strong></p>
47
  <p>
48
- <input name="sp_abbreviation" type="text" id="sp_abbreviation" value="<?php echo $abbreviation; ?>" placeholder="<?php echo mb_substr( $post->post_title, 0, 1 ); ?>">
49
  </p>
50
  <p><strong><?php _e( 'Color', 'sportspress' ); ?></strong></p>
51
  <p>
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 2.6.3
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
45
  </p>
46
  <p><strong><?php _e( 'Abbreviation', 'sportspress' ); ?></strong></p>
47
  <p>
48
+ <input name="sp_abbreviation" type="text" id="sp_abbreviation" value="<?php echo $abbreviation; ?>" placeholder="<?php echo sp_substr( $post->post_title, 0, 1 ); ?>">
49
  </p>
50
  <p><strong><?php _e( 'Color', 'sportspress' ); ?></strong></p>
51
  <p>
includes/class-sp-player-list.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress player list class handles individual player list data.
6
  *
7
  * @class SP_Player_List
8
- * @version 2.6
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -146,7 +146,7 @@ class SP_Player_List extends SP_Secondary_Post {
146
 
147
  $players = (array) get_posts( $args );
148
 
149
- $players = apply_filters( 'sportspress_player_list_players', $players, $args, $team );
150
 
151
  if ( $players && is_array( $players ) ) {
152
  foreach ( $players as $player ) {
5
  * The SportsPress player list class handles individual player list data.
6
  *
7
  * @class SP_Player_List
8
+ * @version 2.6.2
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
146
 
147
  $players = (array) get_posts( $args );
148
 
149
+ $players = apply_filters( 'sportspress_player_list_players', $players, $args, $team, $team_key );
150
 
151
  if ( $players && is_array( $players ) ) {
152
  foreach ( $players as $player ) {
includes/class-sp-player.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress player class handles individual player data.
6
  *
7
  * @class SP_Player
8
- * @version 2.6.1
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -528,7 +528,7 @@ class SP_Player extends SP_Custom_Post {
528
  if ( $outcomes ):
529
  $outcome = reset( $outcomes );
530
  $abbreviation = sp_get_abbreviation( $outcome->ID );
531
- if ( empty( $abbreviation ) ) $abbreviation = mb_strtoupper( mb_substr( $outcome->post_title, 0, 1 ) );
532
  $totals['streak'] = $abbreviation . $streak['count'];
533
  endif;
534
 
5
  * The SportsPress player class handles individual player data.
6
  *
7
  * @class SP_Player
8
+ * @version 2.6.3
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
528
  if ( $outcomes ):
529
  $outcome = reset( $outcomes );
530
  $abbreviation = sp_get_abbreviation( $outcome->ID );
531
+ if ( empty( $abbreviation ) ) $abbreviation = sp_strtoupper( sp_substr( $outcome->post_title, 0, 1 ) );
532
  $totals['streak'] = $abbreviation . $streak['count'];
533
  endif;
534
 
includes/class-sp-team.php CHANGED
@@ -5,7 +5,7 @@
5
  * The SportsPress team class handles individual team data.
6
  *
7
  * @class SP_Team
8
- * @version 2.6
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
@@ -323,7 +323,7 @@ class SP_Team extends SP_Custom_Post {
323
  $outcome = reset( $outcomes );
324
  $abbreviation = get_post_meta( $outcome->ID, 'sp_abbreviation', true );
325
  if ( ! $abbreviation )
326
- $abbreviation = mb_substr( $outcome->post_title, 0, 1 );
327
  $totals['streak'] = $abbreviation . $streak['count'];
328
  endif;
329
 
5
  * The SportsPress team class handles individual team data.
6
  *
7
  * @class SP_Team
8
+ * @version 2.6.3
9
  * @package SportsPress/Classes
10
  * @category Class
11
  * @author ThemeBoy
323
  $outcome = reset( $outcomes );
324
  $abbreviation = get_post_meta( $outcome->ID, 'sp_abbreviation', true );
325
  if ( ! $abbreviation )
326
+ $abbreviation = sp_substr( $outcome->post_title, 0, 1 );
327
  $totals['streak'] = $abbreviation . $streak['count'];
328
  endif;
329
 
includes/sp-api-functions.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 2.6
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -296,7 +296,7 @@ function sp_team_abbreviation( $post = 0, $forced = false ) {
296
  if ( $abbreviation ) {
297
  return $abbreviation;
298
  } else {
299
- return $forced ? mb_substr( mb_strtoupper( sp_team_short_name( $post ) ), 0, 3 ) : sp_team_short_name( $post );
300
  }
301
  }
302
 
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 2.6.3
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
296
  if ( $abbreviation ) {
297
  return $abbreviation;
298
  } else {
299
+ return $forced ? sp_substr( sp_strtoupper( sp_team_short_name( $post ) ), 0, 3 ) : sp_team_short_name( $post );
300
  }
301
  }
302
 
includes/sp-core-functions.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 2.6
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@@ -123,6 +123,22 @@ function sp_locate_template( $template_name, $template_path = '', $default_path
123
  return apply_filters('sportspress_locate_template', $template, $template_name, $template_path);
124
  }
125
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  /**
127
  * Get the timezone string.
128
  *
@@ -152,7 +168,7 @@ function sp_get_timezone() {
152
 
153
  /* deprecated functions below */
154
 
155
- if( !function_exists( 'date_diff' ) ) {
156
  class DateInterval {
157
  public $y;
158
  public $m;
@@ -1620,3 +1636,28 @@ function sp_get_shortcode_template( $shortcode, $id = null, $args = array() ) {
1620
  function sp_shortcode_template( $shortcode, $id = null, $args = array() ) {
1621
  echo sp_get_shortcode_template( $shortcode, $id, $args );
1622
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 2.6.3
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
123
  return apply_filters('sportspress_locate_template', $template, $template_name, $template_path);
124
  }
125
 
126
+ function sp_substr( $string = '', $start = 0, $length = null ) {
127
+ if ( function_exists( 'mb_substr' ) ) {
128
+ return mb_substr( $string, $start, $length );
129
+ } else {
130
+ return substr( $string, $start, $length );
131
+ }
132
+ }
133
+
134
+ function sp_strtoupper( $string = '' ) {
135
+ if ( function_exists( 'mb_strtoupper' ) ) {
136
+ return mb_strtoupper( $string );
137
+ } else {
138
+ return strtoupper( $string );
139
+ }
140
+ }
141
+
142
  /**
143
  * Get the timezone string.
144
  *
168
 
169
  /* deprecated functions below */
170
 
171
+ if ( !function_exists( 'date_diff' ) ) {
172
  class DateInterval {
173
  public $y;
174
  public $m;
1636
  function sp_shortcode_template( $shortcode, $id = null, $args = array() ) {
1637
  echo sp_get_shortcode_template( $shortcode, $id, $args );
1638
  }
1639
+
1640
+ if( ! function_exists( 'array_replace' ) ) {
1641
+ /**
1642
+ * array_replace for PHP version earlier than 5.3
1643
+ *
1644
+ * @link http://be2.php.net/manual/fr/function.array-replace.php#115215
1645
+ */
1646
+ function array_replace() {
1647
+ $args = func_get_args();
1648
+ $num_args = func_num_args();
1649
+ $res = array();
1650
+ for( $i = 0; $i < $num_args; $i++ ) {
1651
+ if( is_array( $args[ $i ] ) ) {
1652
+ foreach( $args[ $i ] as $key => $val ) {
1653
+ $res[ $key ] = $val;
1654
+ }
1655
+ }
1656
+ else {
1657
+ trigger_error( __FUNCTION__ . '(): Argument #' . ( $i + 1 ) . ' is not an array', E_USER_WARNING );
1658
+ return NULL;
1659
+ }
1660
+ }
1661
+ return $res;
1662
+ }
1663
+ }
modules/sportspress-next-team-preset.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add a Next preset to SportsPress league table column equations.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 2.6
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Next_Team_Preset' ) ) :
17
  * Main SportsPress Next Team Preset Class
18
  *
19
  * @class SportsPress_Next_Team_Preset
20
- * @version 2.6
21
  */
22
 
23
  class SportsPress_Next_Team_Preset {
@@ -46,7 +46,7 @@ if ( ! class_exists( 'SportsPress_Next_Team_Preset' ) ) :
46
  */
47
  private function define_constants() {
48
  if ( !defined( 'SP_NEXT_TEAM_PRESET_VERSION' ) )
49
- define( 'SP_NEXT_TEAM_PRESET_VERSION', '2.6' );
50
 
51
  if ( !defined( 'SP_NEXT_TEAM_PRESET_URL' ) )
52
  define( 'SP_NEXT_TEAM_PRESET_URL', plugin_dir_url( __FILE__ ) );
@@ -94,6 +94,7 @@ if ( ! class_exists( 'SportsPress_Next_Team_Preset' ) ) :
94
  'compare' => 'IN',
95
  ),
96
  ),
 
97
  );
98
  $events = get_posts( $args );
99
 
5
  Description: Add a Next preset to SportsPress league table column equations.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 2.6.3
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Next Team Preset Class
18
  *
19
  * @class SportsPress_Next_Team_Preset
20
+ * @version 2.6.3
21
  */
22
 
23
  class SportsPress_Next_Team_Preset {
46
  */
47
  private function define_constants() {
48
  if ( !defined( 'SP_NEXT_TEAM_PRESET_VERSION' ) )
49
+ define( 'SP_NEXT_TEAM_PRESET_VERSION', '2.6.3' );
50
 
51
  if ( !defined( 'SP_NEXT_TEAM_PRESET_URL' ) )
52
  define( 'SP_NEXT_TEAM_PRESET_URL', plugin_dir_url( __FILE__ ) );
94
  'compare' => 'IN',
95
  ),
96
  ),
97
+ 'order' => 'ASC',
98
  );
99
  $events = get_posts( $args );
100
 
modules/sportspress-player-assignments.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add player assignments support to SportsPress.
6
  Author: Savvas
7
  Author URI: http://themeboy.com/
8
- Version: 2.6.1
9
  */
10
  // Exit if accessed directly
11
  if ( ! defined( 'ABSPATH' ) ) exit;
@@ -14,7 +14,7 @@ if ( ! class_exists( 'SportsPress_Player_Assignments' ) ) :
14
  * Main SportsPress Player Assignments Class
15
  *
16
  * @class SportsPress_Player_Assignments
17
- * @version 2.6.1
18
  */
19
  class SportsPress_Player_Assignments {
20
  /**
@@ -29,14 +29,14 @@ class SportsPress_Player_Assignments {
29
 
30
  // Filters
31
  add_filter( 'sportspress_player_list_args', array( $this, 'add_args' ), 10, 2 );
32
- add_filter( 'sportspress_player_list_players', array( $this, 'add_players' ), 10, 3 );
33
  }
34
  /**
35
  * Define constants.
36
  */
37
  private function define_constants() {
38
  if ( !defined( 'SP_PLAYER_ASSIGNMENTS_VERSION' ) )
39
- define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6.1' );
40
  if ( !defined( 'SP_PLAYER_ASSIGNMENTS_URL' ) )
41
  define( 'SP_PLAYER_ASSIGNMENTS_URL', plugin_dir_url( __FILE__ ) );
42
  if ( !defined( 'SP_PLAYER_ASSIGNMENTS_DIR' ) )
@@ -66,7 +66,7 @@ class SportsPress_Player_Assignments {
66
  /**
67
  * Add args to filter out assigned players
68
  */
69
- public function add_args( $args = array(), $team = false ) {
70
  if ( ! $team ) return $args;
71
 
72
  $tax_query = (array) sp_array_value( $args, 'tax_query', array() );
@@ -94,7 +94,9 @@ class SportsPress_Player_Assignments {
94
  /**
95
  * Add assigned players to player list
96
  */
97
- public function add_players( $players = array(), $args = array(), $team = false ) {
 
 
98
  $tax_query = (array) sp_array_value( $args, 'tax_query', array() );
99
  $league_ids = array();
100
  $season_ids = array();
@@ -104,6 +106,8 @@ class SportsPress_Player_Assignments {
104
  if ( 'sp_season' === sp_array_value( $param, 'taxonomy' ) ) $season_ids = sp_array_value( $param, 'terms', array() );
105
  }
106
 
 
 
107
  $assignments = array();
108
  foreach ( $league_ids as $l_id ) {
109
  foreach ( $season_ids as $s_id ) {
@@ -115,10 +119,17 @@ class SportsPress_Player_Assignments {
115
 
116
  if ( sizeof( $assignments ) ) {
117
  $args['meta_query'] = array(
 
 
118
  array(
119
  'key' => 'sp_assignments',
120
  'value' => $assignments,
121
- 'compare' => 'IN'
 
 
 
 
 
122
  ),
123
  );
124
  }
@@ -145,4 +156,4 @@ class SportsPress_Player_Assignments {
145
  }
146
  endif;
147
 
148
- new SportsPress_Player_Assignments();
5
  Description: Add player assignments support to SportsPress.
6
  Author: Savvas
7
  Author URI: http://themeboy.com/
8
+ Version: 2.6.2
9
  */
10
  // Exit if accessed directly
11
  if ( ! defined( 'ABSPATH' ) ) exit;
14
  * Main SportsPress Player Assignments Class
15
  *
16
  * @class SportsPress_Player_Assignments
17
+ * @version 2.6.2
18
  */
19
  class SportsPress_Player_Assignments {
20
  /**
29
 
30
  // Filters
31
  add_filter( 'sportspress_player_list_args', array( $this, 'add_args' ), 10, 2 );
32
+ add_filter( 'sportspress_player_list_players', array( $this, 'add_players' ), 10, 4 );
33
  }
34
  /**
35
  * Define constants.
36
  */
37
  private function define_constants() {
38
  if ( !defined( 'SP_PLAYER_ASSIGNMENTS_VERSION' ) )
39
+ define( 'SP_PLAYER_ASSIGNMENTS_VERSION', '2.6.2' );
40
  if ( !defined( 'SP_PLAYER_ASSIGNMENTS_URL' ) )
41
  define( 'SP_PLAYER_ASSIGNMENTS_URL', plugin_dir_url( __FILE__ ) );
42
  if ( !defined( 'SP_PLAYER_ASSIGNMENTS_DIR' ) )
66
  /**
67
  * Add args to filter out assigned players
68
  */
69
+ public function add_args( $args = array(), $team = false ) {
70
  if ( ! $team ) return $args;
71
 
72
  $tax_query = (array) sp_array_value( $args, 'tax_query', array() );
94
  /**
95
  * Add assigned players to player list
96
  */
97
+ public function add_players( $players = array(), $args = array(), $team = false, $team_key = 'sp_team' ) {
98
+ if ( ! $team ) return $players;
99
+
100
  $tax_query = (array) sp_array_value( $args, 'tax_query', array() );
101
  $league_ids = array();
102
  $season_ids = array();
106
  if ( 'sp_season' === sp_array_value( $param, 'taxonomy' ) ) $season_ids = sp_array_value( $param, 'terms', array() );
107
  }
108
 
109
+ if ( empty( $league_ids ) || empty( $season_ids ) ) return $players;
110
+
111
  $assignments = array();
112
  foreach ( $league_ids as $l_id ) {
113
  foreach ( $season_ids as $s_id ) {
119
 
120
  if ( sizeof( $assignments ) ) {
121
  $args['meta_query'] = array(
122
+ 'relation' => 'AND',
123
+
124
  array(
125
  'key' => 'sp_assignments',
126
  'value' => $assignments,
127
+ 'compare' => 'IN',
128
+ ),
129
+
130
+ array(
131
+ 'key' => $team_key,
132
+ 'value' => $team,
133
  ),
134
  );
135
  }
156
  }
157
  endif;
158
 
159
+ new SportsPress_Player_Assignments();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: calendars, club, club management, esports, events, fixtures, leagues, leag
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
- Stable tag: 2.6.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -237,6 +237,16 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
237
 
238
  == Changelog ==
239
 
 
 
 
 
 
 
 
 
 
 
240
  = 2.6.1 =
241
  * Fix - Player lists with a team selected showing players from other teams.
242
  * Fix - REST API endpoints not resolving for players.
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 4.9
7
+ Stable tag: 2.6.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
237
 
238
  == Changelog ==
239
 
240
+ = 2.6.3 =
241
+ * Fix - Assign past teams during player import.
242
+ * Fix - Next team column displaying events furthest away.
243
+ * Fix - Add fallback array_replace function for PHP versions earlier than 5.3.
244
+ * Fix - Add fallback for web hosts that don't support multibyte PHP functions, causing blank player profiles.
245
+
246
+ = 2.6.2 =
247
+ * Fix - Newly added players from past and current team appearing in player lists.
248
+ * Fix - Player lists appearing empty without league, season, and team selected.
249
+
250
  = 2.6.1 =
251
  * Fix - Player lists with a team selected showing players from other teams.
252
  * Fix - REST API endpoints not resolving for players.
sportspress.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: SportsPress
4
  * Plugin URI: http://themeboy.com/sportspress/
5
  * Description: Manage your club and its players, staff, events, league tables, and player lists.
6
- * Version: 2.6.1
7
  * Author: ThemeBoy
8
  * Author URI: http://themeboy.com
9
  * Requires at least: 3.8
@@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) :
26
  * Main SportsPress Class
27
  *
28
  * @class SportsPress
29
- * @version 2.6.1
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
- public $version = '2.6.1';
37
 
38
  /**
39
  * @var SportsPress The single instance of the class
3
  * Plugin Name: SportsPress
4
  * Plugin URI: http://themeboy.com/sportspress/
5
  * Description: Manage your club and its players, staff, events, league tables, and player lists.
6
+ * Version: 2.6.3
7
  * Author: ThemeBoy
8
  * Author URI: http://themeboy.com
9
  * Requires at least: 3.8
26
  * Main SportsPress Class
27
  *
28
  * @class SportsPress
29
+ * @version 2.6.3
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
+ public $version = '2.6.3';
37
 
38
  /**
39
  * @var SportsPress The single instance of the class