Commit d927c19d authored by John James Jacoby's avatar John James Jacoby
Browse files

Clean up column sorting.

parent 2aa7a46e
......@@ -118,7 +118,6 @@ function wp_event_calendar_sortable_columns( $columns = array() ) {
'title' => 'title',
'start' => 'start_date',
'end' => 'end_date',
'duration' => 'duration',
'repeat' => 'repeat'
);
......@@ -128,7 +127,7 @@ function wp_event_calendar_sortable_columns( $columns = array() ) {
/**
* Set the relevant query vars for sorting posts by our front-end sortables.
*
* @since 0.1.5
* @since 0.1.6
*
* @param WP_Query $wp_query The current WP_Query object.
*/
......@@ -144,7 +143,7 @@ function wp_event_calendar_maybe_sort_by_fields( WP_Query $wp_query ) {
? strtoupper( $wp_query->query['order'] )
: 'DESC';
//
// Set by 'orderby'
switch ( $wp_query->query['orderby'] ) {
// End
......@@ -173,10 +172,6 @@ function wp_event_calendar_maybe_sort_by_fields( WP_Query $wp_query ) {
$wp_query->set( 'meta_type', 'DATETIME' );
break;
}
//foreach ( $sort as $key => $value ) {
// $wp_query->set( $key, $value );
//}
}
/**
......
......@@ -3,7 +3,7 @@ Contributors: johnjamesjacoby
Tags: event, calendar
Requires at least: 4.2
Tested up to: 4.3
Stable tag: 0.1.5
Stable tag: 0.1.6
== Description ==
......@@ -53,9 +53,11 @@ http://github.com/johnjamesjacoby/wp-event-calendar/
== Changelog ==
= 0.1.6 =
* Sort by start, end, and repetition
= 0.1.5 =
* All-day events
* Sort by start, end, and repetition
= 0.1.4 =
* More flexibile mapped capabilities
......
......@@ -5,7 +5,7 @@
* Plugin URI: https://wordpress.org/plugins/wp-event-calendar/
* Description: Flexible events, with a calendar view.
* Author: John James Jacoby
* Version: 0.1.5
* Version: 0.1.6
* Author URI: https://profiles.wordpress.org/johnjamesjacoby/
* License: GPL v2 or later
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment