Advanced AJAX Product Filters - Version 1.5.2.2

Version Description

  • Fix - Incompatibility with WordPress 5.6
  • Fix - Issue with filters disappearing
Download this release

Release Info

Developer RazyRx
Plugin Icon wp plugin Advanced AJAX Product Filters
Version 1.5.2.2
Comparing to
See all releases

Code changes from version 1.5.2.1 to 1.5.2.2

addons/deprecated_filters/display_widget.php CHANGED
@@ -299,7 +299,7 @@ class BeRocket_AAPF_Widget {
299
  if( ! empty($style) ) {
300
  echo 'This Filter cannot be displayed as deprecated.';
301
  if ( current_user_can( 'manage_woocommerce' ) ) {
302
- echo 'You can disable "Deprecated filters" add-on in <a href="' . admin_url('admin.php?page=br-product-filters&tab=addons') . '">Plugin settings</a>';
303
  }
304
  return false;
305
  }
299
  if( ! empty($style) ) {
300
  echo 'This Filter cannot be displayed as deprecated.';
301
  if ( current_user_can( 'manage_woocommerce' ) ) {
302
+ echo ' You can disable "Deprecated filters" add-on in <a href="' . admin_url('admin.php?page=br-product-filters&tab=addons') . '">Plugin settings</a>';
303
  }
304
  return false;
305
  }
addons/deprecated_filters/filter_post.php CHANGED
@@ -48,8 +48,21 @@ if( ! empty($instance['version']) ) {
48
  </script>
49
  <?php
50
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  ?>
52
- <div class="berocket_aapf_widget_content">
53
  <div class="widget-liquid-right tab-item current">
54
  <div class="berocketwizard_widget_type">
55
  <label class="br_admin_center"><?php _e('Widget Type', 'BeRocket_AJAX_domain') ?></label>
48
  </script>
49
  <?php
50
  }
51
+ echo '<div style="text-align: center;">
52
+ <p style="font-size: 24px;"><strong>!IMPORTANT!</strong> This filter is <strong>DEPRECATED</strong> and will be replaced with new filters in near future.</p>
53
+ <p style="font-size: 24px;">We recommend you to replace it manually on a staging/dev/local site first.</p>
54
+ <p style="font-size: 24px;">You can disable "Deprecated filters" add-on in <a href="' . admin_url('admin.php?page=br-product-filters&tab=addons') . '">Plugin settings</a></p>
55
+ <button class="berocket_aapf_widget_content_show" style="font-size: 24px;">OK, show filter settings</button>
56
+ </div>
57
+ <script>
58
+ jQuery(document).on("click", ".berocket_aapf_widget_content_show", function(e) {
59
+ e.preventDefault();
60
+ jQuery(".berocket_aapf_widget_content").show();
61
+ jQuery(this).hide();
62
+ });
63
+ </script>';
64
  ?>
65
+ <div class="berocket_aapf_widget_content" style="display:none;">
66
  <div class="widget-liquid-right tab-item current">
67
  <div class="berocketwizard_widget_type">
68
  <label class="br_admin_center"><?php _e('Widget Type', 'BeRocket_AJAX_domain') ?></label>
main.php CHANGED
@@ -542,7 +542,7 @@ class BeRocket_AAPF extends BeRocket_Framework {
542
  wp_dequeue_style( 'font-awesome' );
543
  }
544
  global $wp_query;
545
- if ( ! is_admin() && ! wp_doing_cron() && ! wp_doing_ajax() && ! session_id() ) {
546
  session_start();
547
  }
548
  }
@@ -3034,7 +3034,7 @@ jQuery(document).on('change', '.berocket_disable_ajax_loading', berocket_disable
3034
  global $braapf_parameters;
3035
  $braapf_parameters = array();
3036
  $braapf_parameters['ajax_filtering'] = ! empty($_SERVER['HTTP_X_BRAAPF']);
3037
- $braapf_parameters['do_not_display_filters'] = ! empty($_SERVER['HTTP_X_BRAAPFDISABLE']);
3038
  }
3039
  public function no_products_block_before($teplate_name) {
3040
  if( $teplate_name == 'loop/no-products-found.php' ) {
542
  wp_dequeue_style( 'font-awesome' );
543
  }
544
  global $wp_query;
545
+ if ( ! is_admin() && ! wp_doing_cron() && ! wp_doing_ajax() && ! session_id() && ! wp_is_json_request() ) {
546
  session_start();
547
  }
548
  }
3034
  global $braapf_parameters;
3035
  $braapf_parameters = array();
3036
  $braapf_parameters['ajax_filtering'] = ! empty($_SERVER['HTTP_X_BRAAPF']);
3037
+ $braapf_parameters['do_not_display_filters'] = false;//! empty($_SERVER['HTTP_X_BRAAPFDISABLE']);
3038
  }
3039
  public function no_products_block_before($teplate_name) {
3040
  if( $teplate_name == 'loop/no-products-found.php' ) {
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: https://berocket.com/product/woocommerce-ajax-products-filter?utm_s
5
  Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
6
  Requires at least: 5.0
7
  Tested up to: 5.5
8
- Stable tag: 1.5.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -185,6 +185,10 @@ You can try this plugin's admin side [here](https://berocket.com/product/woocomm
185
 
186
  == Changelog ==
187
 
 
 
 
 
188
  = 1.5.2.1 =
189
  * Fix - Issue with pagination
190
  * Fix - Categories not displayed in conditions
5
  Tags: filters, product filters, ajax product filters, ajax filter, ajax filter widget, color filter, size filter, product onsale filter, product preview, product category filter, product reset filter, product sort by filter, stock filter, product tag filter, price range filter, price box filter, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce products filter, woocommerce ajax product filters, widget, plugin, woocommerce item filters, filters plugin, ajax filters plugin, filter woocommerce products, filter woocommerce products plugin, wc filters, wc filters products, wc products filters, wc ajax products filters, wc product filters, wc advanced product filters, woocommerce layered nav, woocommerce layered navigation, ajax filtered nav, ajax filtered navigation, price filter, ajax price filter, woocommerce product sorting, sidebar filter, sidebar ajax filter, taxonomy filter, category filter, attribute filter, attributes filter, woocommerce product sort, ajax products filter plugin for woocommerce, rocket, berocket, berocket woocommerce ajax products filter
6
  Requires at least: 5.0
7
  Tested up to: 5.5
8
+ Stable tag: 1.5.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
185
 
186
  == Changelog ==
187
 
188
+ = 1.5.2.2 =
189
+ * Fix - Incompatibility with WordPress 5.6
190
+ * Fix - Issue with filters disappearing
191
+
192
  = 1.5.2.1 =
193
  * Fix - Issue with pagination
194
  * Fix - Categories not displayed in conditions
woocommerce-filters.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
- * Version: 1.5.2.1
7
  * Author: BeRocket
8
  * Requires at least: 5.0
9
  * Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
@@ -11,6 +11,6 @@
11
  * Domain Path: /languages/
12
  * WC tested up to: 4.8
13
  */
14
- define( "BeRocket_AJAX_filters_version", '1.5.2.1' );
15
  define( "BeRocket_AJAX_filters_file", __FILE__ );
16
  include_once('main.php');
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
+ * Version: 1.5.2.2
7
  * Author: BeRocket
8
  * Requires at least: 5.0
9
  * Author URI: https://berocket.com?utm_source=free_plugin&utm_medium=plugins&utm_campaign=ajax_filters
11
  * Domain Path: /languages/
12
  * WC tested up to: 4.8
13
  */
14
+ define( "BeRocket_AJAX_filters_version", '1.5.2.2' );
15
  define( "BeRocket_AJAX_filters_file", __FILE__ );
16
  include_once('main.php');