YITH WooCommerce Ajax Product Filter - Version 3.0.1

Version Description

  • Released: Jun 14, 2016 =

  • Fixed: print empty li tag after update to version 3.0.0

Download this release

Release Info

Developer yithemes
Plugin Icon 128x128 YITH WooCommerce Ajax Product Filter
Version 3.0.1
Comparing to
See all releases

Code changes from version 3.0.0 to 3.0.1

README.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
4
  Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
  Tested up to: 4.5.2
7
- Stable tag: 3.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,10 @@ If you want to see a demonstration version of the premium plugin, you can see it
159
 
160
  == Changelog ==
161
 
 
 
 
 
162
  = 3.0.0 - Released: Jun 13, 2016 =
163
 
164
  * Added: Support to WooCommece 2.6
4
  Tags: woocommerce ajax product filter download, woocommerce, widget, ajax, ajax filtered nav, ajax navigation, ajax filtered navigation, woocommerce layered navigation, woocommerce layered nav, product filter, product filters, ajax product filter, woocommerce ajax product filter, woocommerce filters, sidebar filter, sidebar ajax filter, ajax price filter, price filter, product sorting, woocommerce filter, taxonomy filter, attribute filter, attributes filter, woocommerce product sort, ajax sort, woocommerce ajax product filter, advanced product filters, ajax product filters, filters, woocommerce ajax product filters, woocommerce product filters, woocommerce product filters, category filter, attribute filters, woocommerce products filter, woocommerce price filter, yit, yith, yithemes
5
  Requires at least: 4.0
6
  Tested up to: 4.5.2
7
+ Stable tag: 3.0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 3.0.1 - Released: Jun 14, 2016 =
163
+
164
+ * Fixed: print empty li tag after update to version 3.0.0
165
+
166
  = 3.0.0 - Released: Jun 13, 2016 =
167
 
168
  * Added: Support to WooCommece 2.6
includes/class.yith-wcan-frontend.php CHANGED
@@ -52,7 +52,7 @@ if ( ! class_exists( 'YITH_WCAN_Frontend' ) ) {
52
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
53
 
54
  add_action( 'body_class', array( $this, 'body_class' ) );
55
- //TODO: Array ex WC_QUERY()
56
  add_filter( 'the_posts', array( $this, 'the_posts' ), 15, 2 );
57
 
58
  add_filter( 'woocommerce_layered_nav_link', 'yit_plus_character_hack', 99 );
52
  add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles_scripts' ) );
53
 
54
  add_action( 'body_class', array( $this, 'body_class' ) );
55
+
56
  add_filter( 'the_posts', array( $this, 'the_posts' ), 15, 2 );
57
 
58
  add_filter( 'woocommerce_layered_nav_link', 'yit_plus_character_hack', 99 );
init.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: YITH WooCommerce Ajax Product Filter
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
6
- * Version: 3.0.0
7
  * Author: YITHEMES
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-navigation
3
  * Plugin Name: YITH WooCommerce Ajax Product Filter
4
  * Plugin URI: http://yithemes.com/
5
  * Description: YITH WooCommerce Ajax Product Filter offers the perfect way to filter all the products of your shop.
6
+ * Version: 3.0.1
7
  * Author: YITHEMES
8
  * Author URI: http://yithemes.com/
9
  * Text Domain: yith-woocommerce-ajax-navigation
plugin-fw/init.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
- * Version: 2.9.33
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
@@ -64,7 +64,7 @@ if( ! function_exists( 'yit_before_woocommerce_2_6_update' ) ){
64
  function yit_before_woocommerce_2_6_update(){ ?>
65
  <div id="message" class="error notice is-dismissible">
66
  <p>
67
- <strong>Attention!</strong> In the following days the new version 2.6 will be released for WooCommerce. <strong>Update all YITH plugins before updating WooCommerce</strong> to version 2.6 in order to avoid any possible unexpected errors occur.
68
  </p>
69
  <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
70
  </div>
1
  <?php
2
  /**
3
  * Framework Name: YIT Plugin Framework
4
+ * Version: 2.9.34
5
  * Author: Yithemes
6
  * Text Domain: yith-plugin-fw
7
  * Domain Path: /languages/
64
  function yit_before_woocommerce_2_6_update(){ ?>
65
  <div id="message" class="error notice is-dismissible">
66
  <p>
67
+ <strong>Attention!</strong> The new WooCommerce version 2.6 will be released in the following days. <strong>Please, ensure you have updated all YITH plugins before downloading WooCommerce 2.6 </strong> in order to prevent any possible unexpected errors from occuring.
68
  </p>
69
  <button type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
70
  </div>
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -1052,22 +1052,25 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
1052
 
1053
  $link = esc_url( urldecode( apply_filters( 'woocommerce_layered_nav_link', $link ) ) );
1054
 
1055
- echo '<li ' . $class . '>';
1056
 
1057
  if( $count > 0 || $option_is_set ) {
1058
-
1059
- printf( '<a href="%s">%s</a>' , $link, $term->name );
1060
  }
1061
 
1062
  else {
1063
- ! $filter_by_tags_hierarchical && $query_type != 'and' && printf( '<span>%s</span>', $term->name );
 
1064
  }
1065
 
1066
  if ( $count != 0 && apply_filters( "{$args['widget_id']}-show_product_count", true, $instance ) ) {
1067
- echo ' <small class="count">' . $count . '</small><div class="clear"></div>';
1068
  }
1069
 
1070
- echo '</li>';
 
 
1071
 
1072
  }
1073
 
1052
 
1053
  $link = esc_url( urldecode( apply_filters( 'woocommerce_layered_nav_link', $link ) ) );
1054
 
1055
+ $li_printed = false;
1056
 
1057
  if( $count > 0 || $option_is_set ) {
1058
+ printf( '<li %s><a href="%s">%s</a>', $class, $link, $term->name );
1059
+ $li_printed = true;
1060
  }
1061
 
1062
  else {
1063
+ ! $filter_by_tags_hierarchical && $query_type != 'and' && printf( '<li %s><span>%s</span>', $class, $term->name );
1064
+ $li_printed = true;
1065
  }
1066
 
1067
  if ( $count != 0 && apply_filters( "{$args['widget_id']}-show_product_count", true, $instance ) ) {
1068
+ echo '<small class="count">' . $count . '</small><div class="clear"></div>';
1069
  }
1070
 
1071
+ if( $li_printed ){
1072
+ echo '</li>';
1073
+ }
1074
 
1075
  }
1076