diff --git a/changelog.txt b/changelog.txt index fbea05a8..8519e048 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,18 @@ == SportsPress Changelog == += 2.7.9 = +* Tweak - Add support for event format in REST API. +* Tweak - Add "Order" and "Order by" selection fields for countdown widget. +* Tweak - Add option to display event status in countdown widget. +* Tweak - Add ability to filter events by format in calendar template. +* Fix - Reverse order not applying to teams in event lists. +* Fix - XSS issues in events admin page. +* Fix - Filtering based on format for event blocks. +* Fix - Last week and next week filter not applying to player lists. +* Fix - Deselecting a selected team in settings. +* Fix - PHP 8.0 deprecated warnings. +* Localization - Add nationalities and flags for French Guiana, French Polynesia, Guadeloupe, Greenland, Martinique, Reunion, and Sint Maarten. + = 2.7.8 = * Fix - Event results, box scores, and players stats not updating via REST API. diff --git a/includes/admin/class-sp-admin-dashboard.php b/includes/admin/class-sp-admin-dashboard.php index 6dc7b4ab..2c871439 100644 --- a/includes/admin/class-sp-admin-dashboard.php +++ b/includes/admin/class-sp-admin-dashboard.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin - * @version 2.6.8 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly @@ -31,7 +31,7 @@ class SP_Admin_Dashboard { * Init dashboard widgets */ public function init() { - wp_add_dashboard_widget( 'sportspress_dashboard_news', __( 'Sports News', 'sportspress' ), array( $this, 'news_widget' ), null, null, 'side' ); + //wp_add_dashboard_widget( 'sportspress_dashboard_news', __( 'Sports News', 'sportspress' ), array( $this, 'news_widget' ), null, null, 'side' ); wp_add_dashboard_widget( 'sportspress_dashboard_status', __( 'SportsPress', 'sportspress' ), array( $this, 'status_widget' ) ); add_filter( 'dashboard_glance_items', array( $this, 'glance_items' ), 10, 1 ); } diff --git a/includes/admin/class-sp-admin-menus.php b/includes/admin/class-sp-admin-menus.php index bda233d2..b4a302c8 100755 --- a/includes/admin/class-sp-admin-menus.php +++ b/includes/admin/class-sp-admin-menus.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin - * @version 2.5.1 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/post-types/class-sp-admin-cpt-event.php b/includes/admin/post-types/class-sp-admin-cpt-event.php index cf957d83..c139f3fc 100644 --- a/includes/admin/post-types/class-sp-admin-cpt-event.php +++ b/includes/admin/post-types/class-sp-admin-cpt-event.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin/Post_Types - * @version 2.7.7 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php index fe923b9c..e917f738 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-performance.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin/Meta_Boxes - * @version 2.7.3 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php index ecde64b6..a6b4e5da 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-player-statistics.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin/Meta_Boxes - * @version 2.6.9 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php index 85e5e50a..dc3b26f1 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-table-details.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin/Meta_Boxes - * @version 2.7 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/api/class-sp-rest-api.php b/includes/api/class-sp-rest-api.php index 88e51574..cb21a36b 100644 --- a/includes/api/class-sp-rest-api.php +++ b/includes/api/class-sp-rest-api.php @@ -5,7 +5,7 @@ * The SportsPress REST API class handles all API-related hooks. * * @class SP_REST_API - * @version 2.7.8 + * @version 2.7.9 * @package SportsPress/Classes * @category Class * @package SportsPress/API diff --git a/includes/class-sp-countries.php b/includes/class-sp-countries.php index f617572e..a3c00e3b 100644 --- a/includes/class-sp-countries.php +++ b/includes/class-sp-countries.php @@ -5,7 +5,7 @@ * The SportsPress countries class stores continent/country data. * * @class SP_Countries - * @version 2.7.3 + * @version 2.7.9 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-event.php b/includes/class-sp-event.php index 1dadf1eb..4722dd0d 100644 --- a/includes/class-sp-event.php +++ b/includes/class-sp-event.php @@ -5,7 +5,7 @@ * The SportsPress event class handles individual event data. * * @class SP_Event - * @version 2.6.12 + * @version 2.7.9 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-league-table.php b/includes/class-sp-league-table.php index 5f70182d..7b58b248 100644 --- a/includes/class-sp-league-table.php +++ b/includes/class-sp-league-table.php @@ -5,7 +5,7 @@ * The SportsPress league table class handles individual league table data. * * @class SP_League_Table - * @version 2.7 + * @version 2.7.9 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index 33887a5e..8ef9cd54 100644 --- a/includes/class-sp-player-list.php +++ b/includes/class-sp-player-list.php @@ -5,7 +5,7 @@ * The SportsPress player list class handles individual player list data. * * @class SP_Player_List - * @version 2.7.5 + * @version 2.7.9 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index 03042041..7a665baa 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -7,7 +7,7 @@ * @author ThemeBoy * @category Core * @package SportsPress/Functions - * @version 2.7 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/sp-deprecated-functions.php b/includes/sp-deprecated-functions.php index bcdb1f6d..22ab9bbc 100644 --- a/includes/sp-deprecated-functions.php +++ b/includes/sp-deprecated-functions.php @@ -7,7 +7,7 @@ * @author ThemeBoy * @category Core * @package ThemeBoy/Functions - * @version 2.6 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/readme.txt b/readme.txt index a832945f..f5bb75b9 100644 --- a/readme.txt +++ b/readme.txt @@ -3,8 +3,8 @@ Contributors: ThemeBoy, brianmiyaji, aylaview, savvasha, nabil_kadimi, rochester Tags: calendars, club, club management, esports, events, fixtures, leagues, league management, sports, sports club, sports data, team rosters Donate link: http://tboy.co/donate Requires at least: 3.8 -Tested up to: 5.7 -Stable tag: 2.7.8 +Tested up to: 5.8.1 +Stable tag: 2.7.9 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -240,6 +240,20 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate == Changelog == += 2.7.9 = +* Tweak - Add support for event format in REST API. +* Tweak - Add "Order" and "Order by" selection fields for countdown widget. +* Tweak - Add option to display event status in countdown widget. +* Tweak - Add ability to filter events by format in calendar template. +* Fix - Reverse order not applying to teams in event lists. +* Fix - XSS issues in events admin page. +* Fix - Filtering based on format for event blocks. +* Fix - Last week and next week filter not applying to player lists. +* Fix - Deselecting a selected team in settings. +* Fix - PHP 8.0 deprecated warnings. +* Localization - Add nationalities and flags for French Guiana, French Polynesia, Guadeloupe, Greenland, Martinique, Reunion, and Sint Maarten. + + = 2.7.8 = * Fix - Event results, box scores, and players stats not updating via REST API. diff --git a/sportspress.php b/sportspress.php index 0b2c8b08..5b6a1348 100644 --- a/sportspress.php +++ b/sportspress.php @@ -3,11 +3,11 @@ * Plugin Name: SportsPress * Plugin URI: http://themeboy.com/sportspress/ * Description: Manage your club and its players, staff, events, league tables, and player lists. - * Version: 2.7.8 + * Version: 2.7.9 * Author: ThemeBoy * Author URI: http://themeboy.com * Requires at least: 3.8 - * Tested up to: 5.7 + * Tested up to: 5.8.1 * * Text Domain: sportspress * Domain Path: /languages/ @@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) : * Main SportsPress Class * * @class SportsPress - * @version 2.7.8 + * @version 2.7.9 */ final class SportsPress { /** * @var string */ - public $version = '2.7.8'; + public $version = '2.7.9'; /** * @var SportsPress The single instance of the class diff --git a/templates/countdown.php b/templates/countdown.php index 3810e779..2e1a70fb 100644 --- a/templates/countdown.php +++ b/templates/countdown.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.7.1 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/event-blocks.php b/templates/event-blocks.php index c17a6435..9f79d16b 100644 --- a/templates/event-blocks.php +++ b/templates/event-blocks.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.7.3 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/event-calendar.php b/templates/event-calendar.php index e90c132b..9d7fed75 100644 --- a/templates/event-calendar.php +++ b/templates/event-calendar.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.8.0 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/event-list.php b/templates/event-list.php index 2f20adc8..86f2549c 100644 --- a/templates/event-list.php +++ b/templates/event-list.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.7.5 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/official-details.php b/templates/official-details.php index 3837ce33..7dea49b7 100644 --- a/templates/official-details.php +++ b/templates/official-details.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.6 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/player-details.php b/templates/player-details.php index 7dbf55de..7d49b22b 100644 --- a/templates/player-details.php +++ b/templates/player-details.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.6.8 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/player-list.php b/templates/player-list.php index 114e201c..dc6f03de 100644 --- a/templates/player-list.php +++ b/templates/player-list.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.7.1 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/staff-details.php b/templates/staff-details.php index 9fca30a9..8c605ee9 100644 --- a/templates/staff-details.php +++ b/templates/staff-details.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.6 + * @version 2.7.9 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly