Version Description
- Fix - Players not selectable in event edit page.
- Fix - Videos embedded in post content not rendering.
Download this release
Release Info
Developer | ThemeBoy |
Plugin | SportsPress – Sports Club & League Manager |
Version | 2.7.10 |
Comparing to | |
See all releases |
Code changes from version 2.7.9 to 2.7.10
- changelog.txt +4 -0
- includes/class-sp-template-loader.php +4 -4
- includes/sp-core-functions.php +3 -13
- modules/sportspress-lazy-loading.php +13 -28
- readme.txt +5 -1
- sportspress.php +3 -3
changelog.txt
CHANGED
@@ -1,5 +1,9 @@
|
|
1 |
== SportsPress Changelog ==
|
2 |
|
|
|
|
|
|
|
|
|
3 |
= 2.7.9 =
|
4 |
* Tweak - Add support for event format in REST API.
|
5 |
* Tweak - Add "Order" and "Order by" selection fields for countdown widget.
|
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.
|
6 |
+
|
7 |
= 2.7.9 =
|
8 |
* Tweak - Add support for event format in REST API.
|
9 |
* Tweak - Add "Order" and "Order by" selection fields for countdown widget.
|
includes/class-sp-template-loader.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Template Loader
|
4 |
*
|
5 |
* @class SP_Template_Loader
|
6 |
-
* @version 2.7.
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
@@ -34,7 +34,7 @@ class SP_Template_Loader {
|
|
34 |
|
35 |
// Return password form if required
|
36 |
if ( post_password_required() ) {
|
37 |
-
echo
|
38 |
return;
|
39 |
}
|
40 |
|
@@ -90,7 +90,7 @@ class SP_Template_Loader {
|
|
90 |
// Render the template
|
91 |
echo '<div class="sp-section-content sp-section-content-' . esc_attr( $key ) . '">';
|
92 |
if ( 'content' === $key ) {
|
93 |
-
echo
|
94 |
// Template content hook
|
95 |
do_action( 'sportspress_single_' . $type . '_content' );
|
96 |
} else {
|
@@ -126,7 +126,7 @@ class SP_Template_Loader {
|
|
126 |
// Put tab content into buffer
|
127 |
ob_start();
|
128 |
if ( 'content' === $key ) {
|
129 |
-
echo
|
130 |
} else {
|
131 |
call_user_func( $template['action'] );
|
132 |
}
|
3 |
* Template Loader
|
4 |
*
|
5 |
* @class SP_Template_Loader
|
6 |
+
* @version 2.7.10
|
7 |
* @package SportsPress/Classes
|
8 |
* @category Class
|
9 |
* @author ThemeBoy
|
34 |
|
35 |
// Return password form if required
|
36 |
if ( post_password_required() ) {
|
37 |
+
echo get_the_password_form(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
38 |
return;
|
39 |
}
|
40 |
|
90 |
// Render the template
|
91 |
echo '<div class="sp-section-content sp-section-content-' . esc_attr( $key ) . '">';
|
92 |
if ( 'content' === $key ) {
|
93 |
+
echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
94 |
// Template content hook
|
95 |
do_action( 'sportspress_single_' . $type . '_content' );
|
96 |
} else {
|
126 |
// Put tab content into buffer
|
127 |
ob_start();
|
128 |
if ( 'content' === $key ) {
|
129 |
+
echo $content; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
|
130 |
} else {
|
131 |
call_user_func( $template['action'] );
|
132 |
}
|
includes/sp-core-functions.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
-
* @version 2.7.
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -1131,12 +1131,7 @@ if ( ! function_exists( 'sp_post_checklist' ) ) {
|
|
1131 |
}
|
1132 |
?>
|
1133 |
<div id="<?php echo esc_attr( $slug ); ?>-all" class="posttypediv tabs-panel wp-tab-panel sp-tab-panel sp-tab-filter-panel sp-select-all-range" style="display: <?php echo esc_attr( $display ); ?>;">
|
1134 |
-
<input type="hidden" value="0" name="<?php echo esc_attr( $slug ); ?>
|
1135 |
-
<?php
|
1136 |
-
if ( isset( $index ) ) {
|
1137 |
-
echo '[' . esc_attr( $index ) . ']';}
|
1138 |
-
?>
|
1139 |
-
[]" />
|
1140 |
<ul class="categorychecklist form-no-clear">
|
1141 |
<li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php esc_attr_e( 'Select All', 'sportspress' ); ?></strong></label></li>
|
1142 |
<?php
|
@@ -1202,12 +1197,7 @@ if ( ! function_exists( 'sp_post_checklist' ) ) {
|
|
1202 |
">
|
1203 |
<?php echo wp_kses( str_repeat( '<ul><li>', sizeof( $parents ) ) ); ?>
|
1204 |
<label class="selectit">
|
1205 |
-
<input type="checkbox" value="<?php echo esc_attr( $post->ID ); ?>" name="<?php echo esc_attr( $slug ); ?>
|
1206 |
-
<?php
|
1207 |
-
if ( isset( $index ) ) {
|
1208 |
-
echo '[' . esc_attr( $index ) . ']';}
|
1209 |
-
?>
|
1210 |
-
[]"
|
1211 |
<?php
|
1212 |
if ( in_array( $post->ID, $selected ) ) {
|
1213 |
echo ' checked="checked"';}
|
7 |
* @author ThemeBoy
|
8 |
* @category Core
|
9 |
* @package SportsPress/Functions
|
10 |
+
* @version 2.7.10
|
11 |
*/
|
12 |
|
13 |
if ( ! defined( 'ABSPATH' ) ) {
|
1131 |
}
|
1132 |
?>
|
1133 |
<div id="<?php echo esc_attr( $slug ); ?>-all" class="posttypediv tabs-panel wp-tab-panel sp-tab-panel sp-tab-filter-panel sp-select-all-range" style="display: <?php echo esc_attr( $display ); ?>;">
|
1134 |
+
<input type="hidden" value="0" name="<?php echo esc_attr( $slug ); ?><?php if ( isset( $index ) ) { echo '[' . esc_attr( $index ) . ']';} ?>[]" />
|
|
|
|
|
|
|
|
|
|
|
1135 |
<ul class="categorychecklist form-no-clear">
|
1136 |
<li class="sp-select-all-container"><label class="selectit"><input type="checkbox" class="sp-select-all"> <strong><?php esc_attr_e( 'Select All', 'sportspress' ); ?></strong></label></li>
|
1137 |
<?php
|
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
|
1202 |
if ( in_array( $post->ID, $selected ) ) {
|
1203 |
echo ' checked="checked"';}
|
modules/sportspress-lazy-loading.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* @author ThemeBoy
|
6 |
* @category Modules
|
7 |
* @package SportsPress/Modules
|
8 |
-
* @version 2.7.
|
9 |
*/
|
10 |
|
11 |
// Exit if accessed directly
|
@@ -211,12 +211,7 @@ if ( ! class_exists( 'SportsPress_Lazy_Loading' ) ) :
|
|
211 |
}
|
212 |
?>
|
213 |
<div id="<?php echo esc_attr( $slug ); ?>-all" class="posttypediv tabs-panel wp-tab-panel sp-tab-panel sp-ajax-checklist sp-select-all-range" style="display: <?php echo esc_attr( $display ); ?>;">
|
214 |
-
<input type="hidden" value="0" name="<?php echo esc_attr( $slug ); ?>
|
215 |
-
<?php
|
216 |
-
if ( isset( $index ) ) {
|
217 |
-
echo '[' . esc_attr( $index ) . ']';}
|
218 |
-
?>
|
219 |
-
[]" />
|
220 |
<ul class="categorychecklist form-no-clear">
|
221 |
<?php if ( is_array( $posts ) && sizeof( $posts ) ) { ?>
|
222 |
<li class="sp-select-all-container">
|
@@ -228,12 +223,7 @@ if ( ! class_exists( 'SportsPress_Lazy_Loading' ) ) :
|
|
228 |
<?php foreach ( $posts as $post ) { ?>
|
229 |
<li>
|
230 |
<label class="selectit">
|
231 |
-
<input type="checkbox" value="<?php echo esc_attr( $post->ID ); ?>" name="<?php echo esc_attr( $slug ); ?>
|
232 |
-
<?php
|
233 |
-
if ( isset( $index ) ) {
|
234 |
-
echo '[' . esc_attr( $index ) . ']';}
|
235 |
-
?>
|
236 |
-
[]" <?php checked( array_key_exists( $post->ID, $selected ) ); ?>>
|
237 |
<?php
|
238 |
switch ( $player_sort ) {
|
239 |
case 'name':
|
@@ -257,21 +247,16 @@ if ( ! class_exists( 'SportsPress_Lazy_Loading' ) ) :
|
|
257 |
?>
|
258 |
<li>
|
259 |
<label class="selectit">
|
260 |
-
<input type="checkbox" value="<?php echo esc_attr( $post_id ); ?>" name="<?php echo esc_attr( $slug ); ?>
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
break;
|
271 |
-
default: // 'jersey'
|
272 |
-
echo esc_html( sp_get_player_name_with_number( $post_id ) );
|
273 |
-
}
|
274 |
-
?>
|
275 |
</label>
|
276 |
</li>
|
277 |
<?php
|
5 |
* @author ThemeBoy
|
6 |
* @category Modules
|
7 |
* @package SportsPress/Modules
|
8 |
+
* @version 2.7.10
|
9 |
*/
|
10 |
|
11 |
// Exit if accessed directly
|
211 |
}
|
212 |
?>
|
213 |
<div id="<?php echo esc_attr( $slug ); ?>-all" class="posttypediv tabs-panel wp-tab-panel sp-tab-panel sp-ajax-checklist sp-select-all-range" style="display: <?php echo esc_attr( $display ); ?>;">
|
214 |
+
<input type="hidden" value="0" name="<?php echo esc_attr( $slug ); ?><?php if ( isset( $index ) ) { echo '[' . esc_attr( $index ) . ']';} ?>[]" />
|
|
|
|
|
|
|
|
|
|
|
215 |
<ul class="categorychecklist form-no-clear">
|
216 |
<?php if ( is_array( $posts ) && sizeof( $posts ) ) { ?>
|
217 |
<li class="sp-select-all-container">
|
223 |
<?php foreach ( $posts as $post ) { ?>
|
224 |
<li>
|
225 |
<label class="selectit">
|
226 |
+
<input type="checkbox" value="<?php echo esc_attr( $post->ID ); ?>" name="<?php echo esc_attr( $slug ); ?><?php if ( isset( $index ) ) { echo '[' . esc_attr( $index ) . ']';} ?>[]" <?php checked( array_key_exists( $post->ID, $selected ) ); ?>>
|
|
|
|
|
|
|
|
|
|
|
227 |
<?php
|
228 |
switch ( $player_sort ) {
|
229 |
case 'name':
|
247 |
?>
|
248 |
<li>
|
249 |
<label class="selectit">
|
250 |
+
<input type="checkbox" value="<?php echo esc_attr( $post_id ); ?>" name="<?php echo esc_attr( $slug ); ?><?php if ( isset( $index ) ) { echo '[' . esc_attr( $index ) . ']';} ?>[]" <?php checked( true ); ?>>
|
251 |
+
<?php
|
252 |
+
switch ( $player_sort ) {
|
253 |
+
case 'name':
|
254 |
+
echo esc_html( sp_get_player_name_then_number( $post_id ) );
|
255 |
+
break;
|
256 |
+
default: // 'jersey'
|
257 |
+
echo esc_html( sp_get_player_name_with_number( $post_id ) );
|
258 |
+
}
|
259 |
+
?>
|
|
|
|
|
|
|
|
|
|
|
260 |
</label>
|
261 |
</li>
|
262 |
<?php
|
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.
|
8 |
License: GPLv3
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
@@ -240,6 +240,10 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate
|
|
240 |
|
241 |
== Changelog ==
|
242 |
|
|
|
|
|
|
|
|
|
243 |
= 2.7.9 =
|
244 |
* Tweak - Add support for event format in REST API.
|
245 |
* Tweak - Add "Order" and "Order by" selection fields for countdown widget.
|
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 |
|
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.
|
246 |
+
|
247 |
= 2.7.9 =
|
248 |
* Tweak - Add support for event format in REST API.
|
249 |
* Tweak - Add "Order" and "Order by" selection fields for countdown widget.
|
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.
|
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.
|
30 |
*/
|
31 |
final class SportsPress {
|
32 |
|
33 |
/**
|
34 |
* @var string
|
35 |
*/
|
36 |
-
public $version = '2.7.
|
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.10
|
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.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
|