public function __construct($timestamp = false, $args = array())
 {
     if (!defined('EAB_COLLECTION_UPCOMING_WEEKS_COUNT')) {
         define('EAB_COLLECTION_UPCOMING_WEEKS_COUNT', self::WEEK_COUNT, true);
     }
     Eab_Filter::start_date_ordering_set_up();
     add_filter('eab-ordering-date_ordering_direction', array($this, 'propagate_direction_filter'));
     parent::__construct($timestamp, $args);
     Eab_Filter::start_date_ordering_tear_down();
 }
 function _eab_dispatch_event_categories_for_ordering($query)
 {
     global $wp_query;
     if (is_admin()) {
         return false;
     }
     if (!$wp_query->is_main_query()) {
         return false;
     }
     if (empty($query->query_vars['eab_events_category'])) {
         return false;
     }
     Eab_Filter::start_date_ordering_set_up();
     add_filter('found_posts', '_eab_tear_down_event_categories_for_ordering');
 }