{
global $wpdb, $wp;
- $glm_couponscategory = (isset($_REQUEST['glm_couponscategory']))
+ $glm_couponscategory = (isset($_REQUEST['glm_couponscategory']))
? filter_var($_REQUEST['glm_couponscategory'])
: false;
$catSelected = stripslashes(htmlspecialchars($glm_couponscategory));
-
- $midnight = strtotime(date('Y-m-d',time()).' 00:00:00');
+ $midnight = strtotime(date('Y-m-d',time()).' 00:00:00');
+ // args for the search
$args = array(
+ 'posts_per_page' => -1,
'post_type' => GLM_COUPON_POST_TYPE,
'meta_query' => array(
array(
foreach ($coupons as $coupon) {
$custom = get_post_custom($coupon->ID);
if (isset($custom['glm_coupons_member'][0]) && $custom['glm_coupons_member'][0]) {
- $member_data = $this->_getMemberData($custom['glm_coupons_member'][0]);
+ $member_data = $this->_getMemberData($custom['glm_coupons_member'][0]);
} else {
$member_data = array();
}
/**
* Plugin Name: Gaslight Media Coupons
* Description: Coupon Application for Gaslight Media Clients.
- * Version: 1.1.5
+ * Version: 1.1.6
* Author: Steve Sutton
* Author URI: http://www.gaslightmedia.com
* License: All right reserved