From e5521e038d4ba8986f9cc9d5fdabbe4880dbc280 Mon Sep 17 00:00:00 2001 From: Ali Colville Date: Sun, 1 Sep 2024 13:42:55 +0100 Subject: [PATCH] * Security fix: Removed reference to PolyFill ResizeObserver --- includes/core-charting.php | 3 +-- readme.txt | 8 ++++++-- weight-loss-tracker.php | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/includes/core-charting.php b/includes/core-charting.php index ff814fef..e1af5709 100644 --- a/includes/core-charting.php +++ b/includes/core-charting.php @@ -345,7 +345,6 @@ function ws_ls_charting_enqueue_scripts() { $minified = ws_ls_use_minified(); - wp_enqueue_script( 'ws-ls-chart-js-polyfill', 'https://polyfill.io/v3/polyfill.min.js?features=ResizeObserver', [ 'jquery' ], WE_LS_CURRENT_VERSION ); - wp_enqueue_script( 'ws-ls-chart-js', WE_LS_CDN_CHART_JS, [ 'jquery', 'ws-ls-chart-js-polyfill' ], WE_LS_CURRENT_VERSION ); + wp_enqueue_script( 'ws-ls-chart-js', WE_LS_CDN_CHART_JS, [ 'jquery' ], WE_LS_CURRENT_VERSION ); wp_enqueue_script( 'jquery-chart-ws-ls', plugins_url( '../assets/js/ws-ls-chart' . $minified . '.js', __FILE__ ), [ 'ws-ls-chart-js' ], WE_LS_CURRENT_VERSION, true ); } diff --git a/readme.txt b/readme.txt index fc240f33..eac3a83a 100644 --- a/readme.txt +++ b/readme.txt @@ -2,8 +2,8 @@ Contributors: aliakro Tags: weight,tracker,chart,history,macronutrient Requires at least: 6.0 -Tested up to: 6.61 -Stable tag: 10.9.1 +Tested up to: 6.5 +Stable tag: 10.9.2 Requires PHP: 7.4 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html @@ -152,6 +152,10 @@ Measurements are created using Custom Fields. You can therefore specify the unit == Changelog == += 10.9.2 = + +* Security fix: Removed reference to PolyFill ResizeObserver + = 10.9.1 = * Bug fix: Entries were not showing on [wt] chart if they had no weight. diff --git a/weight-loss-tracker.php b/weight-loss-tracker.php index 9d29dd75..fa65ba80 100755 --- a/weight-loss-tracker.php +++ b/weight-loss-tracker.php @@ -5,7 +5,7 @@ /** * Plugin Name: Weight Tracker * Description: Allow your users to track their weight, body measurements, photos and other pieces of custom data. Display in charts, tables, shortcodes and widgets. Manage their data, issue awards, email notifications, etc! Provide advanced data on Body Mass Index (BMI), Basal Metabolic Rate (BMR), Calorie intake, Harris Benedict Formula, Macronutrients Calculator and more. - * Version: 10.9.1 + * Version: 10.9.2 * Requires at least: 6.0 * Tested up to: 6.5 * Requires PHP: 7.4 @@ -18,7 +18,7 @@ */ define( 'WS_LS_ABSPATH', plugin_dir_path( __FILE__ ) ); -define( 'WE_LS_CURRENT_VERSION', '10.9.1' ); +define( 'WE_LS_CURRENT_VERSION', '10.9.2' ); define( 'WE_LS_TITLE', 'Weight Tracker' ); define( 'WE_LS_SLUG', 'weight-loss-tracker' ); define( 'WE_LS_LICENSE_TYPES_URL', 'https://docs.yeken.uk/features.html' );