Version Description
- Fix for using order='DESC' to order events in descending order by event date, with the latest version of The Events Calendar (by Modern Tribe)
Download this release
Release Info
Developer | brianhogg |
Plugin | The Events Calendar Shortcode |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2.1 to 2.3
- readme.txt +8 -2
- the-events-calendar-shortcode.php +5 -3
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: brianhogg
|
|
3 |
Tags: event, events, calendar, shortcode, modern tribe
|
4 |
Requires at least: 4.1
|
5 |
Requires PHP: 5.3
|
6 |
-
Tested up to: 5.
|
7 |
-
Stable tag: 2.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -178,6 +178,9 @@ The [pro version of the plugin](https://eventcalendarnewsletter.com/the-events-c
|
|
178 |
|
179 |
== Upgrade Notice ==
|
180 |
|
|
|
|
|
|
|
181 |
= 2.2.1 =
|
182 |
* Adds block description
|
183 |
|
@@ -295,6 +298,9 @@ Fix missing ul
|
|
295 |
|
296 |
== Changelog ==
|
297 |
|
|
|
|
|
|
|
298 |
= 2.2.1 =
|
299 |
* Adds block description
|
300 |
|
3 |
Tags: event, events, calendar, shortcode, modern tribe
|
4 |
Requires at least: 4.1
|
5 |
Requires PHP: 5.3
|
6 |
+
Tested up to: 5.4
|
7 |
+
Stable tag: 2.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
178 |
|
179 |
== Upgrade Notice ==
|
180 |
|
181 |
+
= 2.3 =
|
182 |
+
* Fix for using order='DESC' to order events in descending order by event date, with the latest version of The Events Calendar (by Modern Tribe)
|
183 |
+
|
184 |
= 2.2.1 =
|
185 |
* Adds block description
|
186 |
|
298 |
|
299 |
== Changelog ==
|
300 |
|
301 |
+
= 2.3 =
|
302 |
+
* Fix for using order='DESC' to order events in descending order by event date, with the latest version of The Events Calendar (by Modern Tribe)
|
303 |
+
|
304 |
= 2.2.1 =
|
305 |
* Adds block description
|
306 |
|
the-events-calendar-shortcode.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: The Events Calendar Shortcode & Block
|
4 |
Plugin URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
|
5 |
Description: An addon to add shortcode and new editor block functionality for The Events Calendar Plugin by Modern Tribe.
|
6 |
-
Version: 2.
|
7 |
Author: Event Calendar Newsletter
|
8 |
Author URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode
|
9 |
Contributors: brianhogg
|
@@ -56,7 +56,7 @@ class Events_Calendar_Shortcode
|
|
56 |
*
|
57 |
* @since 1.0.0
|
58 |
*/
|
59 |
-
const VERSION = '2.
|
60 |
|
61 |
private $admin_page = null;
|
62 |
|
@@ -283,12 +283,14 @@ class Events_Calendar_Shortcode
|
|
283 |
'hide_upcoming' => true,
|
284 |
'posts_per_page' => $atts['limit'],
|
285 |
'tax_query'=> $atts['event_tax'],
|
|
|
286 |
'meta_key' => ( ( trim( $atts['orderby'] ) and 'title' != $atts['orderby'] ) ? $atts['orderby'] : $atts['key'] ),
|
287 |
-
'orderby' => ( $atts['orderby'] == 'title' ? 'title' : '
|
288 |
'author' => $atts['author'],
|
289 |
'order' => $atts['order'],
|
290 |
'meta_query' => apply_filters( 'ecs_get_meta_query', array( $atts['meta_date'] ), $atts, $meta_date_date, $meta_date_compare ),
|
291 |
), $atts, $meta_date_date, $meta_date_compare );
|
|
|
292 |
$posts = tribe_get_events( $args );
|
293 |
$posts = apply_filters( 'ecs_filter_events_after_get', $posts, $atts );
|
294 |
|
3 |
Plugin Name: The Events Calendar Shortcode & Block
|
4 |
Plugin URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode/
|
5 |
Description: An addon to add shortcode and new editor block functionality for The Events Calendar Plugin by Modern Tribe.
|
6 |
+
Version: 2.3
|
7 |
Author: Event Calendar Newsletter
|
8 |
Author URI: https://eventcalendarnewsletter.com/the-events-calendar-shortcode
|
9 |
Contributors: brianhogg
|
56 |
*
|
57 |
* @since 1.0.0
|
58 |
*/
|
59 |
+
const VERSION = '2.3';
|
60 |
|
61 |
private $admin_page = null;
|
62 |
|
283 |
'hide_upcoming' => true,
|
284 |
'posts_per_page' => $atts['limit'],
|
285 |
'tax_query'=> $atts['event_tax'],
|
286 |
+
// Likely want to revamp this logic and separate the ordering from the date filtering
|
287 |
'meta_key' => ( ( trim( $atts['orderby'] ) and 'title' != $atts['orderby'] ) ? $atts['orderby'] : $atts['key'] ),
|
288 |
+
'orderby' => ( $atts['orderby'] == 'title' ? 'title' : 'event_date' ),
|
289 |
'author' => $atts['author'],
|
290 |
'order' => $atts['order'],
|
291 |
'meta_query' => apply_filters( 'ecs_get_meta_query', array( $atts['meta_date'] ), $atts, $meta_date_date, $meta_date_compare ),
|
292 |
), $atts, $meta_date_date, $meta_date_compare );
|
293 |
+
|
294 |
$posts = tribe_get_events( $args );
|
295 |
$posts = apply_filters( 'ecs_filter_events_after_get', $posts, $atts );
|
296 |
|