Skip to content

Commit 2ea2ca3

Browse files
author
Chris Gårdenberg
committed
Prep 2.0.18
- fix: Proper sorting on event dates. (Using `sort` on an `array` was stupid)..
1 parent 626fcaf commit 2ea2ca3

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

eduadmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* Plugin URI: https://www.eduadmin.se
1010
* Description: EduAdmin plugin to allow visitors to book courses at your website
1111
* Tags: booking, participants, courses, events, eduadmin, lega online
12-
* Version: 2.0.17
12+
* Version: 2.0.18
1313
* GitHub Plugin URI: multinetinteractive/eduadmin-wordpress
1414
* GitHub Plugin URI: https://github.com/multinetinteractive/eduadmin-wordpress
1515
* Requires at least: 4.7

includes/edu-text-functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function get_logical_date_groups( $dates, $short = false, $event = null, $show_d
238238

239239
// Copied from http://codereview.stackexchange.com/a/83095/27610
240240
function get_range_from_days( $days, $short, $event, $show_days ) {
241-
sort( $days );
241+
usort( $days, "DateComparer" );
242242
$start_date = $days[0];
243243
$finish_date = $days[ count( $days ) - 1 ];
244244
$result = array();

readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: mnchga
33
Tags: booking, participants, courses, events, eduadmin, lega online
44
Requires at least: 4.7
55
Tested up to: 4.9
6-
Stable tag: 2.0.17
6+
Stable tag: 2.0.18
77
Requires PHP: 5.2
88
License: GPL3
99
License-URI: https://www.gnu.org/licenses/gpl-3.0.en.html
@@ -37,6 +37,9 @@ If you notice that your API key doesn't work any more, you have to contact us.
3737

3838
== Changelog ==
3939

40+
### 2.0.18
41+
- fix: Proper sorting on event dates. (Using `sort` on an `array` was stupid)..
42+
4043
### 2.0.17
4144
- fix: Code styling and small fixes
4245
- add: Added a header for the region-filter on the detail view

0 commit comments

Comments
 (0)