SportsPress – Sports Club & League Manager - Version 2.6.14

Version Description

  • Fix - API endpoints for secondary post types.
Download this release

Release Info

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

Code changes from version 2.6.13 to 2.6.14

changelog.txt CHANGED
@@ -1,5 +1,8 @@
1
  == SportsPress Changelog ==
2
 
 
 
 
3
  = 2.6.13 =
4
  * Fix - Missing functionality with Gutenberg enabled.
5
  * Fix - Enable API endpoints with WordPress 5.0 and Gutenberg.
1
  == SportsPress Changelog ==
2
 
3
+ = 2.6.14 =
4
+ * Fix - API endpoints for secondary post types.
5
+
6
  = 2.6.13 =
7
  * Fix - Missing functionality with Gutenberg enabled.
8
  * Fix - Enable API endpoints with WordPress 5.0 and Gutenberg.
modules/sportspress-calendars.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add event calendars to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 2.6.11
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Calendars' ) ) :
17
  * Main SportsPress Calendars Class
18
  *
19
  * @class SportsPress_Calendars
20
- * @version 2.6.11
21
  */
22
  class SportsPress_Calendars {
23
 
@@ -51,7 +51,7 @@ class SportsPress_Calendars {
51
  */
52
  private function define_constants() {
53
  if ( !defined( 'SP_CALENDARS_VERSION' ) )
54
- define( 'SP_CALENDARS_VERSION', '2.6.11' );
55
 
56
  if ( !defined( 'SP_CALENDARS_URL' ) )
57
  define( 'SP_CALENDARS_URL', plugin_dir_url( __FILE__ ) );
@@ -91,7 +91,7 @@ class SportsPress_Calendars {
91
  'show_in_nav_menus' => true,
92
  'show_in_menu' => 'edit.php?post_type=sp_event',
93
  'show_in_admin_bar' => true,
94
- 'show_in_rest' => ! function_exists( 'register_block_type' ),
95
  'rest_controller_class' => 'SP_REST_Posts_Controller',
96
  'rest_base' => 'calendars',
97
  )
5
  Description: Add event calendars to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 2.6.14
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Calendars Class
18
  *
19
  * @class SportsPress_Calendars
20
+ * @version 2.6.14
21
  */
22
  class SportsPress_Calendars {
23
 
51
  */
52
  private function define_constants() {
53
  if ( !defined( 'SP_CALENDARS_VERSION' ) )
54
+ define( 'SP_CALENDARS_VERSION', '2.6.14' );
55
 
56
  if ( !defined( 'SP_CALENDARS_URL' ) )
57
  define( 'SP_CALENDARS_URL', plugin_dir_url( __FILE__ ) );
91
  'show_in_nav_menus' => true,
92
  'show_in_menu' => 'edit.php?post_type=sp_event',
93
  'show_in_admin_bar' => true,
94
+ 'show_in_rest' => true,
95
  'rest_controller_class' => 'SP_REST_Posts_Controller',
96
  'rest_base' => 'calendars',
97
  )
modules/sportspress-league-tables.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add league tables to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 2.6.11
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_League_Tables' ) ) :
17
  * Main SportsPress League Tables Class
18
  *
19
  * @class SportsPress_League_Tables
20
- * @version 2.6.11
21
  */
22
  class SportsPress_League_Tables {
23
 
@@ -48,7 +48,7 @@ class SportsPress_League_Tables {
48
  */
49
  private function define_constants() {
50
  if ( !defined( 'SP_LEAGUE_TABLES_VERSION' ) )
51
- define( 'SP_LEAGUE_TABLES_VERSION', '2.6.11' );
52
 
53
  if ( !defined( 'SP_LEAGUE_TABLES_URL' ) )
54
  define( 'SP_LEAGUE_TABLES_URL', plugin_dir_url( __FILE__ ) );
@@ -88,7 +88,7 @@ class SportsPress_League_Tables {
88
  'show_in_nav_menus' => true,
89
  'show_in_menu' => 'edit.php?post_type=sp_team',
90
  'show_in_admin_bar' => true,
91
- 'show_in_rest' => ! function_exists( 'register_block_type' ),
92
  'rest_controller_class' => 'SP_REST_Posts_Controller',
93
  'rest_base' => 'tables',
94
  )
5
  Description: Add league tables to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 2.6.14
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress League Tables Class
18
  *
19
  * @class SportsPress_League_Tables
20
+ * @version 2.6.14
21
  */
22
  class SportsPress_League_Tables {
23
 
48
  */
49
  private function define_constants() {
50
  if ( !defined( 'SP_LEAGUE_TABLES_VERSION' ) )
51
+ define( 'SP_LEAGUE_TABLES_VERSION', '2.6.14' );
52
 
53
  if ( !defined( 'SP_LEAGUE_TABLES_URL' ) )
54
  define( 'SP_LEAGUE_TABLES_URL', plugin_dir_url( __FILE__ ) );
88
  'show_in_nav_menus' => true,
89
  'show_in_menu' => 'edit.php?post_type=sp_team',
90
  'show_in_admin_bar' => true,
91
+ 'show_in_rest' => true,
92
  'rest_controller_class' => 'SP_REST_Posts_Controller',
93
  'rest_base' => 'tables',
94
  )
modules/sportspress-officials.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add officials to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 2.6.11
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Officials' ) ) :
17
  * Main SportsPress Officials Class
18
  *
19
  * @class SportsPress_Officials
20
- * @version 2.6.11
21
  */
22
  class SportsPress_Officials {
23
 
@@ -66,7 +66,7 @@ class SportsPress_Officials {
66
  */
67
  private function define_constants() {
68
  if ( !defined( 'SP_OFFICIALS_VERSION' ) )
69
- define( 'SP_OFFICIALS_VERSION', '2.6.11' );
70
 
71
  if ( !defined( 'SP_OFFICIALS_URL' ) )
72
  define( 'SP_OFFICIALS_URL', plugin_dir_url( __FILE__ ) );
@@ -154,7 +154,7 @@ class SportsPress_Officials {
154
  'has_archive' => false,
155
  'show_in_nav_menus' => true,
156
  'menu_icon' => 'dashicons-flag',
157
- 'show_in_rest' => ! function_exists( 'register_block_type' ),
158
  'rest_controller_class' => 'SP_REST_Posts_Controller',
159
  'rest_base' => 'officials',
160
  )
5
  Description: Add officials to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 2.6.14
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Officials Class
18
  *
19
  * @class SportsPress_Officials
20
+ * @version 2.6.14
21
  */
22
  class SportsPress_Officials {
23
 
66
  */
67
  private function define_constants() {
68
  if ( !defined( 'SP_OFFICIALS_VERSION' ) )
69
+ define( 'SP_OFFICIALS_VERSION', '2.6.14' );
70
 
71
  if ( !defined( 'SP_OFFICIALS_URL' ) )
72
  define( 'SP_OFFICIALS_URL', plugin_dir_url( __FILE__ ) );
154
  'has_archive' => false,
155
  'show_in_nav_menus' => true,
156
  'menu_icon' => 'dashicons-flag',
157
+ 'show_in_rest' => true,
158
  'rest_controller_class' => 'SP_REST_Posts_Controller',
159
  'rest_base' => 'officials',
160
  )
modules/sportspress-player-lists.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/
5
  Description: Add player lists to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
- Version: 2.6.11
9
  */
10
 
11
  // Exit if accessed directly
@@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Player_Lists' ) ) :
17
  * Main SportsPress Player Lists Class
18
  *
19
  * @class SportsPress_Player_Lists
20
- * @version 2.6.11
21
  */
22
  class SportsPress_Player_Lists {
23
 
@@ -48,7 +48,7 @@ class SportsPress_Player_Lists {
48
  */
49
  private function define_constants() {
50
  if ( !defined( 'SP_PLAYER_LISTS_VERSION' ) )
51
- define( 'SP_PLAYER_LISTS_VERSION', '2.6.11' );
52
 
53
  if ( !defined( 'SP_PLAYER_LISTS_URL' ) )
54
  define( 'SP_PLAYER_LISTS_URL', plugin_dir_url( __FILE__ ) );
@@ -88,7 +88,7 @@ class SportsPress_Player_Lists {
88
  'show_in_nav_menus' => true,
89
  'show_in_menu' => 'edit.php?post_type=sp_player',
90
  'show_in_admin_bar' => true,
91
- 'show_in_rest' => ! function_exists( 'register_block_type' ),
92
  'rest_controller_class' => 'SP_REST_Posts_Controller',
93
  'rest_base' => 'lists',
94
  )
5
  Description: Add player lists to SportsPress.
6
  Author: ThemeBoy
7
  Author URI: http://themeboy.com/
8
+ Version: 2.6.14
9
  */
10
 
11
  // Exit if accessed directly
17
  * Main SportsPress Player Lists Class
18
  *
19
  * @class SportsPress_Player_Lists
20
+ * @version 2.6.14
21
  */
22
  class SportsPress_Player_Lists {
23
 
48
  */
49
  private function define_constants() {
50
  if ( !defined( 'SP_PLAYER_LISTS_VERSION' ) )
51
+ define( 'SP_PLAYER_LISTS_VERSION', '2.6.14' );
52
 
53
  if ( !defined( 'SP_PLAYER_LISTS_URL' ) )
54
  define( 'SP_PLAYER_LISTS_URL', plugin_dir_url( __FILE__ ) );
88
  'show_in_nav_menus' => true,
89
  'show_in_menu' => 'edit.php?post_type=sp_player',
90
  'show_in_admin_bar' => true,
91
+ 'show_in_rest' => true,
92
  'rest_controller_class' => 'SP_REST_Posts_Controller',
93
  'rest_base' => 'lists',
94
  )
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: 5.0
7
- Stable tag: 2.6.13
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -237,6 +237,9 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
237
 
238
  == Changelog ==
239
 
 
 
 
240
  = 2.6.13 =
241
  * Fix - Missing functionality with Gutenberg enabled.
242
  * Fix - Enable API endpoints with WordPress 5.0 and Gutenberg.
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 5.0
7
+ Stable tag: 2.6.14
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
237
 
238
  == Changelog ==
239
 
240
+ = 2.6.14 =
241
+ * Fix - API endpoints for secondary post types.
242
+
243
  = 2.6.13 =
244
  * Fix - Missing functionality with Gutenberg enabled.
245
  * Fix - Enable API endpoints with WordPress 5.0 and Gutenberg.
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.13
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.13
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
- public $version = '2.6.13';
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.14
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.14
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
+ public $version = '2.6.14';
37
 
38
  /**
39
  * @var SportsPress The single instance of the class