From 294210cceae20178771da7d7b26f56131bdc6119 Mon Sep 17 00:00:00 2001 From: Nabil Kadimi Date: Wed, 12 Aug 2020 18:32:17 +0100 Subject: [PATCH 1/2] Add "Leagues" and "Seasons" to overridable strings --- includes/sp-core-functions.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/sp-core-functions.php b/includes/sp-core-functions.php index b1ce7bd2..cad4706c 100644 --- a/includes/sp-core-functions.php +++ b/includes/sp-core-functions.php @@ -1580,6 +1580,7 @@ function sp_get_text_options() { __( 'Full Time', 'sportspress' ), __( 'Home', 'sportspress' ), __( 'League', 'sportspress' ), + __( 'Leagues', 'sportspress' ), __( 'League Table', 'sportspress' ), __( 'Match Day', 'sportspress' ), __( 'Nationality', 'sportspress' ), @@ -1599,6 +1600,7 @@ function sp_get_text_options() { __( 'Recap', 'sportspress' ), __( 'Results', 'sportspress' ), __( 'Season', 'sportspress' ), + __( 'Seasons', 'sportspress' ), __( 'Staff', 'sportspress' ), __( 'Statistics', 'sportspress' ), __( 'TBD', 'sportspress' ), From f5979897878bfd93091ce1d468f6cc6e41c68f65 Mon Sep 17 00:00:00 2001 From: Nabil Kadimi Date: Sat, 22 Aug 2020 12:27:56 +0100 Subject: [PATCH 2/2] Remove deprecated jQuery function `size` --- assets/js/admin/sportspress-admin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/admin/sportspress-admin.js b/assets/js/admin/sportspress-admin.js index e660a847..ca3cdc88 100644 --- a/assets/js/admin/sportspress-admin.js +++ b/assets/js/admin/sportspress-admin.js @@ -258,7 +258,7 @@ jQuery(document).ready(function($){ }); // Activate total stats calculator - if($(".sp-data-table .sp-total").size()) { + if($(".sp-data-table .sp-total").length) { $(".sp-data-table .sp-post td input").on("keyup", function() { $(this).closest(".sp-data-table").find(".sp-total td").eq($(this).parent().index()).find("input[data-sp-format=number][data-sp-total-type!=average]").trigger("updateTotal"); });