YITH WooCommerce Ajax Product Filter - Version 3.0.11

Version Description

  • Released: 05 October, 2016=

  • Tweak: Removed deprecated taxonomy count WooCommerce transient

  • Fixed: Wrong reset url if filter start from product category page

Download this release

Release Info

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

Code changes from version 3.0.10 to 3.0.11

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.6.1
7
- Stable tag: 3.0.10
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -159,7 +159,12 @@ If you want to see a demonstration version of the premium plugin, you can see it
159
160
== Changelog ==
161
162
- = 3.0.10 - Released: 29 September 2016 =
163
164
* Fixed: Warning: in_array() expects at least 2 parameters, 1 given with query type set to OR
165
* Fixed: Widget dropdown doesn't works on Flatsome Theme
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.6.1
7
+ Stable tag: 3.0.11
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.11 - Released: 05 October, 2016=
163
+
164
+ * Tweak: Removed deprecated taxonomy count WooCommerce transient
165
+ * Fixed: Wrong reset url if filter start from product category page
166
+
167
+ = 3.0.10 - Released: 29 September, 2016 =
168
169
* Fixed: Warning: in_array() expects at least 2 parameters, 1 given with query type set to OR
170
* Fixed: Widget dropdown doesn't works on Flatsome Theme
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.10
7
* Author: YITHEMES
8
* Author URI: http://yithemes.com/
9
* Text Domain: yith-woocommerce-ajax-navigation
@@ -64,7 +64,7 @@ load_plugin_textdomain( 'yith-woocommerce-ajax-navigation', false, dirname( plug
64
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
65
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
66
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
67
- ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '3.0.10' );
68
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
69
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
70
@@ -100,23 +100,26 @@ if ( ! function_exists( 'YITH_WCAN' ) ) {
100
}
101
}
102
103
- function yith_wcan_free_install() {
104
105
- if ( ! function_exists( 'WC' ) ) {
106
- add_action( 'admin_notices', 'install_premium_woocommerce_admin_notice' );
107
- }
108
- elseif ( defined( 'YITH_WCAN_PREMIUM' ) ) {
109
- add_action( 'admin_notices', 'yith_deactive_free_wcan_version' );
110
- deactivate_plugins( plugin_basename( __FILE__ ) );
111
- }
112
- else {
113
- /**
114
- * Instance main plugin class
115
- */
116
- global $yith_wcan;
117
- $yith_wcan = YITH_WCAN();
118
}
119
}
120
add_action( 'plugins_loaded', 'yith_wcan_free_install', 11 );
121
122
register_activation_hook( YITH_WCAN_FILE, 'yith_plugin_registration_hook' );
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.11
7
* Author: YITHEMES
8
* Author URI: http://yithemes.com/
9
* Text Domain: yith-woocommerce-ajax-navigation
64
! defined( 'YITH_WCAN' ) && define( 'YITH_WCAN', true );
65
! defined( 'YITH_WCAN_URL' ) && define( 'YITH_WCAN_URL', plugin_dir_url( __FILE__ ) );
66
! defined( 'YITH_WCAN_DIR' ) && define( 'YITH_WCAN_DIR', plugin_dir_path( __FILE__ ) );
67
+ ! defined( 'YITH_WCAN_VERSION' ) && define( 'YITH_WCAN_VERSION', '3.0.11' );
68
! defined( 'YITH_WCAN_FREE_INIT') && define( 'YITH_WCAN_FREE_INIT', plugin_basename( __FILE__ ) );
69
! defined( 'YITH_WCAN_FILE' ) && define( 'YITH_WCAN_FILE', __FILE__ );
70
100
}
101
}
102
103
+ if( ! function_exists( 'yith_wcan_free_install' ) ){
104
+ function yith_wcan_free_install() {
105
106
+ if ( ! function_exists( 'WC' ) ) {
107
+ add_action( 'admin_notices', 'install_premium_woocommerce_admin_notice' );
108
+ }
109
+ elseif ( defined( 'YITH_WCAN_PREMIUM' ) ) {
110
+ add_action( 'admin_notices', 'yith_deactive_free_wcan_version' );
111
+ deactivate_plugins( plugin_basename( __FILE__ ) );
112
+ }
113
+ else {
114
+ /**
115
+ * Instance main plugin class
116
+ */
117
+ global $yith_wcan;
118
+ $yith_wcan = YITH_WCAN();
119
+ }
120
}
121
}
122
+
123
add_action( 'plugins_loaded', 'yith_wcan_free_install', 11 );
124
125
register_activation_hook( YITH_WCAN_FILE, 'yith_plugin_registration_hook' );
settings/frontend-options.php CHANGED
@@ -55,7 +55,7 @@ $frontend = array(
55
56
array(
57
'name' => __( 'Scroll top anchor', 'yith-woocommerce-ajax-navigation' ),
58
- 'desc' => __( 'Enter here the HTML tag for the scroll to top feature on mobiles', 'yith-woocommerce-ajax-navigation' ) . ' (Default: <strong>.yit-wcan-container</strong>)',
59
'id' => 'yith_wcan_ajax_scroll_top_class',
60
'type' => 'text',
61
'std' => '.yit-wcan-container'
55
56
array(
57
'name' => __( 'Scroll top anchor', 'yith-woocommerce-ajax-navigation' ),
58
+ 'desc' => __( 'Enter here the HTML tag for the scroll to top feature', 'yith-woocommerce-ajax-navigation' ) . ' (Default: <strong>.yit-wcan-container</strong>)',
59
'id' => 'yith_wcan_ajax_scroll_top_class',
60
'type' => 'text',
61
'std' => '.yit-wcan-container'
widgets/class.yith-wcan-navigation-widget.php CHANGED
@@ -157,7 +157,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
157
158
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
159
160
- set_transient( $transient_name, $_products_in_term );
161
//}
162
163
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && $in_array_function( $term->$filter_term_field, $_chosen_attributes[$taxonomy]['terms'] ) );
@@ -333,7 +333,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
333
334
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
335
336
- set_transient( $transient_name, $_products_in_term );
337
//}
338
339
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && $in_array_function( $term->$filter_term_field, $_chosen_attributes[$taxonomy]['terms'] ) );
@@ -507,7 +507,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
507
508
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
509
510
- set_transient( $transient_name, $_products_in_term );
511
//}
512
513
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && $in_array_function( $term->$filter_term_field, $_chosen_attributes[$taxonomy]['terms'] ) );
@@ -894,7 +894,7 @@ if ( ! class_exists( 'YITH_WCAN_Navigation_Widget' ) ) {
894
895
$_products_in_term = get_objects_in_term($term->term_id, $taxonomy);
896
897
- set_transient($transient_name, $_products_in_term);
898
//}
899
900
$option_is_set = (isset($_chosen_attributes[$taxonomy]) && $in_array_function($term->term_id, $_chosen_attributes[$taxonomy]['terms']));
157
158
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
159
160
+ //set_transient( $transient_name, $_products_in_term );
161
//}
162
163
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && $in_array_function( $term->$filter_term_field, $_chosen_attributes[$taxonomy]['terms'] ) );
333
334
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
335
336
+ //set_transient( $transient_name, $_products_in_term );
337
//}
338
339
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && $in_array_function( $term->$filter_term_field, $_chosen_attributes[$taxonomy]['terms'] ) );
507
508
$_products_in_term = get_objects_in_term( $term->term_id, $taxonomy );
509
510
+ //set_transient( $transient_name, $_products_in_term );
511
//}
512
513
$option_is_set = ( isset( $_chosen_attributes[$taxonomy] ) && $in_array_function( $term->$filter_term_field, $_chosen_attributes[$taxonomy]['terms'] ) );
894
895
$_products_in_term = get_objects_in_term($term->term_id, $taxonomy);
896
897
+ //set_transient($transient_name, $_products_in_term);
898
//}
899
900
$option_is_set = (isset($_chosen_attributes[$taxonomy]) && $in_array_function($term->term_id, $_chosen_attributes[$taxonomy]['terms']));