From 1cdf432b9961904884b2eda0cca300d2a3561be9 Mon Sep 17 00:00:00 2001 From: Brian Miyaji Date: Sun, 15 Jan 2017 23:01:54 +1100 Subject: [PATCH] Tag version 2.2.4 --- changelog.txt | 14 ++++++++++++++ includes/admin/class-sp-admin-welcome.php | 2 +- .../class-sp-meta-box-event-details.php | 2 +- .../class-sp-meta-box-event-performance.php | 2 +- .../class-sp-meta-box-player-statistics.php | 2 +- .../admin/settings/class-sp-settings-general.php | 2 +- .../admin/settings/class-sp-settings-players.php | 2 +- includes/class-sp-event.php | 2 +- includes/class-sp-install.php | 2 +- includes/class-sp-league-table.php | 2 +- includes/class-sp-player-list.php | 2 +- includes/class-sp-player.php | 2 +- includes/class-sp-team.php | 2 +- includes/sp-api-functions.php | 2 +- includes/sp-core-functions.php | 2 +- modules/sportspress-style.php | 6 +++--- readme.txt | 16 +++++++++++++++- sportspress.php | 6 +++--- templates/event-performance-table-combined.php | 2 +- templates/event-performance-table.php | 2 +- templates/event-results.php | 2 +- templates/player-statistics.php | 2 +- 22 files changed, 53 insertions(+), 25 deletions(-) diff --git a/changelog.txt b/changelog.txt index 89083755..fe921f34 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,5 +1,19 @@ == SportsPress Changelog == += 2.2.4 = +* Feature - Option to show or hide career totals in player profiles. +* Fix - Equations returning zero when no events played. +* Fix - Player lists and player profiles showing different statistics when filtered by competition or season. +* Fix - Substitution icon not rendering for starting lineup players. +* Fix - Manual player performance errors in profile. +* Fix - Error in event results if team was deleted. +* Fix - Remove deprecated function in PHP 7.0. +* Fix - Non-numeric errors in PHP 7.1. +* Tweak - Icons not rendering when frontend stylesheet is active. +* Tweak - Remove underline from icon links in frontend stylesheet. +* Tweak - Change competition and season placeholders in events to "None". +* Tweak - Enable horizontal scrolling on large tables in admin. + = 2.2.3 = * Fix - Placeholders for non-numeric values in player list displaying as zero. diff --git a/includes/admin/class-sp-admin-welcome.php b/includes/admin/class-sp-admin-welcome.php index 98e03af7..09276c32 100644 --- a/includes/admin/class-sp-admin-welcome.php +++ b/includes/admin/class-sp-admin-welcome.php @@ -9,7 +9,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin - * @version 2.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php index 604080f8..863f8121 100644 --- a/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php +++ b/includes/admin/post-types/meta-boxes/class-sp-meta-box-event-details.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin/Meta_Boxes - * @version 2.1 + * @version 2.2.4 */ 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 277aca32..a7366fa7 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.2 + * @version 2.2.4 */ 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 329ba652..620f03a0 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.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/settings/class-sp-settings-general.php b/includes/admin/settings/class-sp-settings-general.php index f7afb4a6..9049100b 100644 --- a/includes/admin/settings/class-sp-settings-general.php +++ b/includes/admin/settings/class-sp-settings-general.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin - * @version 2.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/admin/settings/class-sp-settings-players.php b/includes/admin/settings/class-sp-settings-players.php index 14b2abc8..4361d874 100644 --- a/includes/admin/settings/class-sp-settings-players.php +++ b/includes/admin/settings/class-sp-settings-players.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Admin - * @version 2.1.6 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/class-sp-event.php b/includes/class-sp-event.php index c30e4a13..4bee4c70 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.2 + * @version 2.2.4 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-install.php b/includes/class-sp-install.php index 05aa7184..fb8383eb 100644 --- a/includes/class-sp-install.php +++ b/includes/class-sp-install.php @@ -5,7 +5,7 @@ * @author ThemeBoy * @category Admin * @package SportsPress/Classes - * @version 2.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/class-sp-league-table.php b/includes/class-sp-league-table.php index d3faeca7..dd56ebcb 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.2.2 + * @version 2.2.4 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-player-list.php b/includes/class-sp-player-list.php index b531079a..d152ca47 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.2.3 + * @version 2.2.4 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-player.php b/includes/class-sp-player.php index 15fa63cc..daa393ba 100644 --- a/includes/class-sp-player.php +++ b/includes/class-sp-player.php @@ -5,7 +5,7 @@ * The SportsPress player class handles individual player data. * * @class SP_Player - * @version 2.2 + * @version 2.2.4 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/class-sp-team.php b/includes/class-sp-team.php index a69109a8..ff30bd86 100644 --- a/includes/class-sp-team.php +++ b/includes/class-sp-team.php @@ -5,7 +5,7 @@ * The SportsPress team class handles individual team data. * * @class SP_Team - * @version 2.1.3 + * @version 2.2.4 * @package SportsPress/Classes * @category Class * @author ThemeBoy diff --git a/includes/sp-api-functions.php b/includes/sp-api-functions.php index fb58df1e..37b90276 100644 --- a/includes/sp-api-functions.php +++ b/includes/sp-api-functions.php @@ -7,7 +7,7 @@ * @author ThemeBoy * @category Core * @package SportsPress/Functions - * @version 2.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index af86f544..68030f87 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.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/modules/sportspress-style.php b/modules/sportspress-style.php index 9b4f18a5..6dd091ed 100644 --- a/modules/sportspress-style.php +++ b/modules/sportspress-style.php @@ -5,7 +5,7 @@ Plugin URI: http://themeboy.com/ Description: Add frontend styles to SportsPress. Author: ThemeBoy Author URI: http://themeboy.com/ -Version: 2.2 +Version: 2.2.4 */ // Exit if accessed directly @@ -17,7 +17,7 @@ if ( ! class_exists( 'SportsPress_Style' ) ) : * Main SportsPress Style Class * * @class SportsPress_Style - * @version 2.2 + * @version 2.2.4 */ class SportsPress_Style { @@ -43,7 +43,7 @@ class SportsPress_Style { */ private function define_constants() { if ( !defined( 'SP_STYLE_VERSION' ) ) - define( 'SP_STYLE_VERSION', '2.2' ); + define( 'SP_STYLE_VERSION', '2.2.4' ); if ( !defined( 'SP_STYLE_URL' ) ) define( 'SP_STYLE_URL', plugin_dir_url( __FILE__ ) ); diff --git a/readme.txt b/readme.txt index 1caf0a72..12a35928 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: calendars, club, club management, esports, events, fixtures, leagues, leag Donate link: http://tboy.co/donate Requires at least: 3.8 Tested up to: 4.7 -Stable tag: 2.2.3 +Stable tag: 2.2.4 License: GPLv3 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -241,6 +241,20 @@ When you upgrade to one of the SportsPress Pro licenses, you can simply activate == Changelog == += 2.2.4 = +* Feature - Option to show or hide career totals in player profiles. +* Fix - Equations returning zero when no events played. +* Fix - Player lists and player profiles showing different statistics when filtered by competition or season. +* Fix - Substitution icon not rendering for starting lineup players. +* Fix - Manual player performance errors in profile. +* Fix - Error in event results if team was deleted. +* Fix - Remove deprecated function in PHP 7.0. +* Fix - Non-numeric errors in PHP 7.1. +* Tweak - Icons not rendering when frontend stylesheet is active. +* Tweak - Remove underline from icon links in frontend stylesheet. +* Tweak - Change competition and season placeholders in events to "None". +* Tweak - Enable horizontal scrolling on large tables in admin. + = 2.2.3 = * Fix - Placeholders for non-numeric values in player list displaying as zero. diff --git a/sportspress.php b/sportspress.php index 4a175da0..91cee9c3 100644 --- a/sportspress.php +++ b/sportspress.php @@ -3,7 +3,7 @@ * 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.2.3 + * Version: 2.2.4 * Author: ThemeBoy * Author URI: http://themeboy.com * Requires at least: 3.8 @@ -26,14 +26,14 @@ if ( ! class_exists( 'SportsPress' ) ) : * Main SportsPress Class * * @class SportsPress - * @version 2.2.3 + * @version 2.2.4 */ final class SportsPress { /** * @var string */ - public $version = '2.2.3'; + public $version = '2.2.4'; /** * @var SportsPress The single instance of the class diff --git a/templates/event-performance-table-combined.php b/templates/event-performance-table-combined.php index f512bb2e..9249809d 100644 --- a/templates/event-performance-table-combined.php +++ b/templates/event-performance-table-combined.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/event-performance-table.php b/templates/event-performance-table.php index d62e1176..f2009bde 100644 --- a/templates/event-performance-table.php +++ b/templates/event-performance-table.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.2 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/event-results.php b/templates/event-results.php index 7b7bd8c9..c15a4f8c 100644 --- a/templates/event-results.php +++ b/templates/event-results.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.0 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly diff --git a/templates/player-statistics.php b/templates/player-statistics.php index 62c152ec..c6d4b171 100644 --- a/templates/player-statistics.php +++ b/templates/player-statistics.php @@ -4,7 +4,7 @@ * * @author ThemeBoy * @package SportsPress/Templates - * @version 2.0.5 + * @version 2.2.4 */ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly