Expiry fix. Closes #741.
This commit is contained in:
parent
3cb8f314c3
commit
79cc67b23c
|
@ -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
|
||||
|
|
|
@ -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 →', 'woocommerce') . '</a>' );
|
||||
exit;
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue