SportsPress – Sports Club & League Manager - Version 2.7.11

Version Description

  • Fix - Player status selector not reflecting changes in match edit screen.
  • Fix - Player dropdown template not displaying names.
  • Fix - Staff dropdown template not displaying names.
Download this release

Release Info

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

Code changes from version 2.7.10 to 2.7.11

changelog.txt CHANGED
@@ -1,5 +1,10 @@
1
  == SportsPress Changelog ==
2
 
 
 
 
 
 
3
  = 2.7.10 =
4
  * Fix - Players not selectable in event edit page.
5
  * Fix - Videos embedded in post content not rendering.
1
  == SportsPress Changelog ==
2
 
3
+ = 2.7.11 =
4
+ * Fix - Player status selector not reflecting changes in match edit screen.
5
+ * Fix - Player dropdown template not displaying names.
6
+ * Fix - Staff dropdown template not displaying names.
7
+
8
  = 2.7.10 =
9
  * Fix - Players not selectable in event edit page.
10
  * Fix - Videos embedded in post content not rendering.
includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php CHANGED
@@ -5,7 +5,7 @@
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
- * @version 2.7.9
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) {
@@ -563,8 +563,8 @@ endforeach;
563
  $times = false;
564
  }
565
  ?>
566
- <?php echo wp_kses( self::status_select( $team_id, $player_id, sp_array_value( $player_performance, 'status', null ) ), array( 'select' => array( 'class' => array(), 'name' => array() ), 'option' => array( 'value' => array() ) ) ); ?><br>
567
- <?php echo wp_kses( self::sub_select( $team_id, $player_id, sp_array_value( $player_performance, 'sub', null ), $data ), array( 'select' => array( 'class' => array(), 'name' => array() ), 'option' => array( 'value' => array() ) ) ); ?><br>
568
  <?php if ( is_array( $times ) ) { ?>
569
  <input class="sp-sync-input small-text" type="text" name="sp_timeline[<?php echo esc_attr( $team_id ); ?>][<?php echo esc_attr( $player_id ); ?>][sub][]" value="<?php echo esc_attr( sp_array_value( $times, 0, '' ) ); ?>" placeholder="-" />
570
  <span class="description"><?php esc_html_e( 'mins', 'sportspress' ); ?></span>
5
  * @author ThemeBoy
6
  * @category Admin
7
  * @package SportsPress/Admin/Meta_Boxes
8
+ * @version 2.7.11
9
  */
10
 
11
  if ( ! defined( 'ABSPATH' ) ) {
563
  $times = false;
564
  }
565
  ?>
566
+ <?php echo wp_kses( self::status_select( $team_id, $player_id, sp_array_value( $player_performance, 'status', null ) ), array( 'select' => array( 'class' => array(), 'name' => array() ), 'option' => array( 'value' => array(), 'selected' => array() ) ) ); ?><br>
567
+ <?php echo wp_kses( self::sub_select( $team_id, $player_id, sp_array_value( $player_performance, 'sub', null ), $data ), array( 'select' => array( 'class' => array(), 'name' => array() ), 'option' => array( 'value' => array(), 'selected' => array() ) ) ); ?><br>
568
  <?php if ( is_array( $times ) ) { ?>
569
  <input class="sp-sync-input small-text" type="text" name="sp_timeline[<?php echo esc_attr( $team_id ); ?>][<?php echo esc_attr( $player_id ); ?>][sub][]" value="<?php echo esc_attr( sp_array_value( $times, 0, '' ) ); ?>" placeholder="-" />
570
  <span class="description"><?php esc_html_e( 'mins', 'sportspress' ); ?></span>
includes/sp-core-functions.php CHANGED
@@ -7,7 +7,7 @@
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
- * @version 2.7.10
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
@@ -1195,7 +1195,7 @@ if ( ! function_exists( 'sp_post_checklist' ) ) {
1195
  endif;
1196
  ?>
1197
  ">
1198
- <?php echo wp_kses( str_repeat( '<ul><li>', sizeof( $parents ) ) ); ?>
1199
  <label class="selectit">
1200
  <input type="checkbox" value="<?php echo esc_attr( $post->ID ); ?>" name="<?php echo esc_attr( $slug ); ?><?php if ( isset( $index ) ) { echo '[' . esc_attr( $index ) . ']';} ?>[]"
1201
  <?php
@@ -1205,7 +1205,7 @@ if ( ! function_exists( 'sp_post_checklist' ) ) {
1205
  >
1206
  <?php echo esc_html( sp_get_player_name_with_number( $post->ID ) ); ?>
1207
  </label>
1208
- <?php echo wp_kses( str_repeat( '</li></ul>', sizeof( $parents ) ) ); ?>
1209
  </li>
1210
  <?php
1211
  endforeach;
7
  * @author ThemeBoy
8
  * @category Core
9
  * @package SportsPress/Functions
10
+ * @version 2.7.11
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
1195
  endif;
1196
  ?>
1197
  ">
1198
+ <?php echo str_repeat( '<ul><li>', sizeof( $parents ) ); ?>
1199
  <label class="selectit">
1200
  <input type="checkbox" value="<?php echo esc_attr( $post->ID ); ?>" name="<?php echo esc_attr( $slug ); ?><?php if ( isset( $index ) ) { echo '[' . esc_attr( $index ) . ']';} ?>[]"
1201
  <?php
1205
  >
1206
  <?php echo esc_html( sp_get_player_name_with_number( $post->ID ) ); ?>
1207
  </label>
1208
+ <?php echo str_repeat( '</li></ul>', sizeof( $parents ) ); ?>
1209
  </li>
1210
  <?php
1211
  endforeach;
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.8.1
7
- Stable tag: 2.7.10
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -240,6 +240,11 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
240
 
241
  == Changelog ==
242
 
 
 
 
 
 
243
  = 2.7.10 =
244
  * Fix - Players not selectable in event edit page.
245
  * Fix - Videos embedded in post content not rendering.
4
  Donate link: http://tboy.co/donate
5
  Requires at least: 3.8
6
  Tested up to: 5.8.1
7
+ Stable tag: 2.7.11
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
240
 
241
  == Changelog ==
242
 
243
+ = 2.7.11 =
244
+ * Fix - Player status selector not reflecting changes in match edit screen.
245
+ * Fix - Player dropdown template not displaying names.
246
+ * Fix - Staff dropdown template not displaying names.
247
+
248
  = 2.7.10 =
249
  * Fix - Players not selectable in event edit page.
250
  * Fix - Videos embedded in post content not rendering.
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.7.10
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.7.10
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
- public $version = '2.7.10';
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.7.11
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.7.11
30
  */
31
  final class SportsPress {
32
 
33
  /**
34
  * @var string
35
  */
36
+ public $version = '2.7.11';
37
 
38
  /**
39
  * @var SportsPress The single instance of the class
templates/player-selector.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 2.6.8
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -80,7 +80,7 @@ if ( sizeof( $options ) > 1 ) :
80
  ?>
81
  <div class="sp-template sp-template-player-selector sp-template-profile-selector">
82
  <select class="sp-profile-selector sp-player-selector sp-selector-redirect">
83
- <?php echo wp_kses_post( implode( $options ) ); ?>
84
  </select>
85
  </div>
86
  <?php
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 2.7.11
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
80
  ?>
81
  <div class="sp-template sp-template-player-selector sp-template-profile-selector">
82
  <select class="sp-profile-selector sp-player-selector sp-selector-redirect">
83
+ <?php echo wp_kses( implode( $options ), array( 'option' => array( 'value' => array(), 'selected' => array() ) ) ); ?>
84
  </select>
85
  </div>
86
  <?php
templates/staff-selector.php CHANGED
@@ -4,7 +4,7 @@
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
- * @version 2.3
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
@@ -72,7 +72,7 @@ if ( sizeof( $options ) > 1 ) :
72
  ?>
73
  <div class="sp-template sp-template-staff-selector sp-template-profile-selector">
74
  <select class="sp-profile-selector sp-staff-selector sp-selector-redirect">
75
- <?php echo wp_kses_post( implode( $options ) ); ?>
76
  </select>
77
  </div>
78
  <?php
4
  *
5
  * @author ThemeBoy
6
  * @package SportsPress/Templates
7
+ * @version 2.7.11
8
  */
9
 
10
  if ( ! defined( 'ABSPATH' ) ) {
72
  ?>
73
  <div class="sp-template sp-template-staff-selector sp-template-profile-selector">
74
  <select class="sp-profile-selector sp-staff-selector sp-selector-redirect">
75
+ <?php echo wp_kses( implode( $options ), array( 'option' => array( 'value' => array(), 'selected' => array() ) ) ); ?>
76
  </select>
77
  </div>
78
  <?php