Skip to content

Commit

Permalink
3.5.1 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
alicolville committed May 12, 2016
1 parent 51f7bec commit 27edc92
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pro-features/shortcode-chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ function ws_ls_shortcode_chart($user_defined_arguments)
$weight_data = ws_ls_get_weights($chart_arguments['user-id'], $chart_arguments['max-data-points'], -1, 'desc');

// Reverse array so in cron order
$weight_data = array_reverse($weight_data);
if(is_array($weight_data) && !empty($weight_data)) {
$weight_data = array_reverse($weight_data);
}

// Render chart
if ($weight_data){
Expand Down
8 changes: 6 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: aliakro
Tags: weight, graph, track, stones, kg, table, data, plot, target, history, pounds, responsive, chart
Requires at least: 4.1.0
Tested up to: 4.5
Stable tag: 3.5
Stable tag: 3.5.1
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -136,10 +136,14 @@ Yes. In WordPress Admin goto Settings > Weight Loss Tracker and change the setti

== Changelog ==

= 3.5.1 =

* BUG FIX: Additional logic around array_reverse when rendering a chart to ensure the object is an array and not empty.

= 3.5 =

* Added locale support for advanced data tables (Pro feature)
* Updated Dutch translations for advanced data tables and others
* Updated Dutch translations for advanced data tables and others

= 3.4.1 =

Expand Down
2 changes: 1 addition & 1 deletion weight-loss-tracker.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Plugin Name: Weight Loss Tracker
* Description: An easy to use plugin that allows a user to keep track of their weight history in both tabular and chart format.
* Version: 3.5
* Version: 3.5.1
* Author: YeKen
* Author URI: https://www.YeKen.uk
* License: GPL2
Expand Down

0 comments on commit 27edc92

Please sign in to comment.