Expiry fix. Closes #741.

This commit is contained in:
Mike Jolley 2012-03-04 00:01:56 +00:00
parent 3cb8f314c3
commit 79cc67b23c
3 changed files with 3 additions and 2 deletions

View File

@ -149,6 +149,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
* Updated Turkish translation
* Layered nav for attribute pages (thanks helgatheviking)
* Fixed dates in dashboard stats
* Download expiry was backwards
= 1.5 - 01/03/2012 =
* Quick edit products

View File

@ -798,7 +798,7 @@ function woocommerce_download_product() {
endif;
if ($access_expires > 0 && strtotime($access_expires) > current_time('timestamp')) :
if ($access_expires > 0 && strtotime($access_expires) < current_time('timestamp')) :
wp_die( __('Sorry, this download has expired', 'woocommerce') . ' <a href="'.home_url().'">' . __('Go to homepage &rarr;', 'woocommerce') . '</a>' );
exit;

View File

@ -632,7 +632,7 @@ class Woocommerce {
$label = ( isset( $tax->attribute_label ) && $tax->attribute_label ) ? $tax->attribute_label : $tax->attribute_name;
$show_in_nav_menus = apply_filters('woocommerce_attribute_show_in_nav_menus', true, $name);
$show_in_nav_menus = apply_filters('woocommerce_attribute_show_in_nav_menus', false, $name);
register_taxonomy( $name,
array('product'),