Skip to content

Commit

Permalink
Merge pull request #178 from alicolville/polyfill
Browse files Browse the repository at this point in the history
3.1.7
  • Loading branch information
alicolville authored Sep 1, 2024
2 parents 9572253 + 3d85f7f commit ab9b862
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
3 changes: 1 addition & 2 deletions core/functions.chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ function yk_mt_chart_enqueue() {
$minified = yk_mt_use_minified();

// Polyfill required for older browsers for chart.js 3+
wp_enqueue_script( 'mt-chart-js-polyfill', 'https://polyfill.io/v3/polyfill.min.js?features=ResizeObserver', [ 'jquery' ], YK_MT_PLUGIN_VERSION );
wp_enqueue_script( 'mt-chart-js', 'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.0.2/chart.min.js', [ 'jquery', 'mt-chart-js-polyfill' ], YK_MT_PLUGIN_VERSION );
wp_enqueue_script( 'mt-chart-js', 'https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.0.2/chart.min.js', [ 'jquery' ], YK_MT_PLUGIN_VERSION );
wp_enqueue_script( 'mt-chart', plugins_url( 'assets/js/core.chart' . $minified . '.js', __DIR__ ), [ 'jquery', 'mt-chart-js' ], YK_MT_PLUGIN_VERSION, true );

// Scripts > ChartJS > Localized scripts
Expand Down
6 changes: 3 additions & 3 deletions meal-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
/**
* Plugin Name: Meal Tracker
* Description: Allow your users to track their meals and calorie intake for a given day.
* Version: 3.1.6
* Version: 3.1.7
* Requires at least: 5.7
* Tested up to: 6.5
* Tested up to: 6.5
* Requires PHP: 7.2
* Author: Ali Colville
* Author URI: https://www.YeKen.uk
Expand All @@ -18,7 +18,7 @@
*/

define( 'YK_MT_ABSPATH', plugin_dir_path( __FILE__ ) );
define( 'YK_MT_PLUGIN_VERSION', '3.1.6' );
define( 'YK_MT_PLUGIN_VERSION', '3.1.7' );
define( 'YK_MT_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'YK_MT_SLUG', 'meal-tracker' );

Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
=== Meal Tracker ===
Contributors: aliakro
Donate link: https://www.paypal.me/yeken
Tags: meal, tracker, calories, weight, food, fatsecrets, collection, macronutrients, fractions, search, edit, create
Tags: meal, tracker, calories, weight, food
Requires at least: 5.7
Tested up to: 6.5
Stable tag: 3.1.6
Stable tag: 3.1.7
Requires PHP: 7.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -87,6 +87,10 @@ The plugin is written in English (UK) but is ready for translation. If you wish

== Changelog ==

= 3.1.7 =

* Security fix: Removed reference to PolyFill ResizeObserver

= 3.1.6 =

* Maintenance: Updated tested with WP 6.5 note.
Expand Down

0 comments on commit ab9b862

Please sign in to comment.