Changeset 1237326
- Timestamp:
- 09/03/2015 02:07:45 PM (11 years ago)
- Location:
- am-events/trunk
- Files:
-
- 2 edited
-
am-events.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
am-events/trunk/am-events.php
r1236114 r1237326 4 4 Plugin URI: http://wordpress.org/extend/plugins/am-events/ 5 5 Description: Adds a post type for events and a customizable widget for displaying upcoming events. 6 Version: 1.9. 66 Version: 1.9.7 7 7 Author: Atte Moisio 8 8 Author URI: http://attemoisio.fi … … 94 94 */ 95 95 require_once dirname(__FILE__) . '/widget-upcoming-events.php'; 96 //require_once dirname(__FILE__) . '/widget-event-calendar.php'; 96 97 require_once dirname(__FILE__) . '/template-tags.php'; 97 98 … … 173 174 $end = "$this_year-12-31 23:59:59"; 174 175 $query->set( 'meta_query', am_get_archive_meta_query($start, $end) ); 176 am_pre_modify_query($query); 175 177 } else if (is_month()) { // Monthly archive page 176 178 $start = "$this_year-$this_month-01 00:00:00"; 177 179 $end = "$this_year-$this_month-31 23:59:59"; 178 180 $query->set( 'meta_query', am_get_archive_meta_query($start, $end) ); 181 am_pre_modify_query($query); 179 182 } else if (is_day()) { // Daily archive page 180 183 $start = "$this_year-$this_month-$this_day 00:00:00"; 181 184 $end = "$this_year-$this_month-$this_day 23:59:59"; 182 185 $query->set( 'meta_query', am_get_archive_meta_query($start, $end) ); 186 am_pre_modify_query($query); 183 187 } 184 188 185 $query->set( 'post_type', 'am_event' );186 $query->set( 'meta_key', 'am_startdate' );187 $query->set( 'orderby', 'meta_value' );188 $query->set( 'order', 'ASC' );189 $query->set( 'year', null);190 $query->set( 'monthnum', null);191 $query->set( 'day', null);192 193 189 } 190 } 191 192 function am_pre_modify_query($query) { 193 $query->set( 'post_type', 'am_event' ); 194 $query->set( 'meta_key', 'am_startdate' ); 195 $query->set( 'orderby', 'meta_value' ); 196 $query->set( 'order', 'ASC' ); 197 $query->set( 'year', null); 198 $query->set( 'monthnum', null); 199 $query->set( 'day', null); 194 200 } 195 201 … … 215 221 function am_register_widgets() { 216 222 register_widget('AM_Upcoming_Events_Widget'); 223 //register_widget('AM_Event_Calendar_Widget'); 217 224 } 218 225 -
am-events/trunk/readme.txt
r1236114 r1237326 4 4 Requires at least: 3.3.1 5 5 Tested up to: 4.3 6 Stable tag: 1.9. 66 Stable tag: 1.9.7 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 == Changelog == 57 57 58 = 1.9.7 = 59 * Fixed admin panel event list ordering 60 58 61 = 1.9.6 = 59 * Fix tags being stripped from recurring events.62 * Fixed tags being stripped from recurring events 60 63 61 64 = 1.9.5 = … … 132 135 == Upgrade Notice == 133 136 137 = 1.9.7 = 138 * Fixes admin panel event list ordering. 139 134 140 = 1.9.6 = 135 * Fixes tags being stripped from recurring events .141 * Fixes tags being stripped from recurring events 136 142 137 143 = 1.9.5 =
Note: See TracChangeset
for help on using the changeset viewer.