From 4027918edd1ff0954204f724c45dc5fa135d6ae8 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 29 Jul 2016 08:15:11 -0400 Subject: [PATCH] Do all time.ly events Forgot to remove part where it was only getting one event. --- index.php | 6 +++--- models/admin/management/events.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index 8b715dd..44ea55e 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.2.24 + * Version: 1.2.25 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.2.24 + * @version 1.2.25 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.24'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.25'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/admin/management/events.php b/models/admin/management/events.php index fb05f70..c8e8cdb 100644 --- a/models/admin/management/events.php +++ b/models/admin/management/events.php @@ -1166,7 +1166,7 @@ class GlmMembersAdmin_management_events extends GlmDataEventsManagement AND post_status = 'publish'"; //$sql .= " AND ID IN ( SELECT post_id FROM " . $this->wpdb->prefix . "ai1ec_events //WHERE end >= " . time() . " )"; - $sql .= " AND ID IN ( 3785 )"; + //$sql .= " AND ID IN ( 3785 )"; $sql .= " LIMIT $limit OFFSET $start"; $results = $this->wpdb->get_results( $sql, ARRAY_A ); -- 2.17.1