Advanced AJAX Product Filters - Version 1.3.1.5

Version Description

  • Enhancement - Code Security
Download this release

Release Info

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

Code changes from version 1.3.1.4 to 1.3.1.5

includes/functions.php CHANGED
@@ -456,8 +456,8 @@ if( ! function_exists( 'br_aapf_args_parser_attributes_terms' ) ) {
456
  ), $args);
457
  $md5 = $wpdb->get_var(
458
  $wpdb->prepare("SELECT MD5(GROUP_CONCAT(CONCAT(t.slug, t.term_id, tt.parent, tt.count)))
459
- FROM {$wpdb->terms} AS t
460
- INNER JOIN {$wpdb->term_taxonomy} AS tt ON t.term_id = tt.term_id
461
  WHERE tt.taxonomy IN ('%s')",
462
  $args['taxonomy']
463
  )
@@ -2282,8 +2282,8 @@ if( ! function_exists('br_get_taxonomy_hierarchy') ) {
2282
  ), $args);
2283
  $md5 = $wpdb->get_var(
2284
  $wpdb->prepare(
2285
- "SELECT MD5(GROUP_CONCAT(CONCAT(t.slug, t.term_id, tt.parent, tt.count))) FROM {$wpdb->terms} AS t
2286
- INNER JOIN {$wpdb->term_taxonomy} AS tt ON t.term_id = tt.term_id
2287
  WHERE tt.taxonomy IN (%s)",
2288
  $args['taxonomy']
2289
  )
@@ -2376,8 +2376,8 @@ if( ! function_exists('br_generate_child_relation') ) {
2376
  global $wpdb;
2377
  $newmd5 = $wpdb->get_var(
2378
  $wpdb->prepare(
2379
- "SELECT MD5(GROUP_CONCAT(CONCAT(t.slug, t.term_id, tt.parent, tt.count))) FROM {$wpdb->terms} AS t
2380
- INNER JOIN {$wpdb->term_taxonomy} AS tt ON t.term_id = tt.term_id
2381
  WHERE tt.taxonomy IN (%s)",
2382
  $taxonomy
2383
  )
456
  ), $args);
457
  $md5 = $wpdb->get_var(
458
  $wpdb->prepare("SELECT MD5(GROUP_CONCAT(CONCAT(t.slug, t.term_id, tt.parent, tt.count)))
459
+ FROM $wpdb->terms AS t
460
+ INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id
461
  WHERE tt.taxonomy IN ('%s')",
462
  $args['taxonomy']
463
  )
2282
  ), $args);
2283
  $md5 = $wpdb->get_var(
2284
  $wpdb->prepare(
2285
+ "SELECT MD5(GROUP_CONCAT(CONCAT(t.slug, t.term_id, tt.parent, tt.count))) FROM $wpdb->terms AS t
2286
+ INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id
2287
  WHERE tt.taxonomy IN (%s)",
2288
  $args['taxonomy']
2289
  )
2376
  global $wpdb;
2377
  $newmd5 = $wpdb->get_var(
2378
  $wpdb->prepare(
2379
+ "SELECT MD5(GROUP_CONCAT(CONCAT(t.slug, t.term_id, tt.parent, tt.count))) FROM $wpdb->terms AS t
2380
+ INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id
2381
  WHERE tt.taxonomy IN (%s)",
2382
  $taxonomy
2383
  )
includes/new_widget.php CHANGED
@@ -187,15 +187,15 @@ class BeRocket_new_AAPF_Widget_single extends WP_Widget
187
  if( $search_berocket_hidden_clickable !== FALSE ) {
188
  unset($additional_class[$search_berocket_hidden_clickable]);
189
  }
190
- echo '<div class="berocket_single_filter_widget berocket_single_filter_widget_' . $instance['filter_id'] . ' ' . $custom_class . ' ' . implode(' ', $additional_class) . '" data-id="' . $instance['filter_id'] . '">';
191
  } else {
192
  if( ! empty($args['widget_inline_style']) ) {
193
- $classes_arr = 'berocket_single_filter_widget berocket_single_filter_widget_' . $instance['filter_id'] . ' ' . $custom_class . ' ' . implode(' ', $additional_class);
194
  $classes_arr = explode(' ', preg_replace('!\s+!', ' ', $classes_arr));
195
  $classes_arr = '.' . implode('.', $classes_arr);
196
  echo '<style>'.$classes_arr.' .berocket_aapf_widget {' . $args['widget_inline_style'] . '}</style>';
197
  }
198
- echo '<div class="berocket_single_filter_widget berocket_single_filter_widget_' . $instance['filter_id'] . ' ' . $custom_class . ' '.implode(' ', $additional_class).'" data-id="' . $instance['filter_id'] . '" style="'.br_get_value_from_array($args, 'inline_style').'">';
199
  }
200
  if( apply_filters('BeRocket_AAPF_widget_old_display_conditions', true, $filter_data, $instance, $args) ) {
201
  the_widget( 'BeRocket_AAPF_widget', $filter_data, $args);
187
  if( $search_berocket_hidden_clickable !== FALSE ) {
188
  unset($additional_class[$search_berocket_hidden_clickable]);
189
  }
190
+ echo '<div class="berocket_single_filter_widget berocket_single_filter_widget_' . esc_html($instance['filter_id']) . ' ' . esc_html($custom_class) . ' ' . implode(' ', $additional_class) . '" data-id="' . esc_html($instance['filter_id']) . '">';
191
  } else {
192
  if( ! empty($args['widget_inline_style']) ) {
193
+ $classes_arr = 'berocket_single_filter_widget berocket_single_filter_widget_' . esc_html($instance['filter_id']) . ' ' . esc_html($custom_class) . ' ' . implode(' ', $additional_class);
194
  $classes_arr = explode(' ', preg_replace('!\s+!', ' ', $classes_arr));
195
  $classes_arr = '.' . implode('.', $classes_arr);
196
  echo '<style>'.$classes_arr.' .berocket_aapf_widget {' . $args['widget_inline_style'] . '}</style>';
197
  }
198
+ echo '<div class="berocket_single_filter_widget berocket_single_filter_widget_' . esc_html($instance['filter_id']) . ' ' . esc_html($custom_class) . ' '.implode(' ', $additional_class).'" data-id="' . esc_html($instance['filter_id']) . '" style="'.br_get_value_from_array($args, 'inline_style').'">';
199
  }
200
  if( apply_filters('BeRocket_AAPF_widget_old_display_conditions', true, $filter_data, $instance, $args) ) {
201
  the_widget( 'BeRocket_AAPF_widget', $filter_data, $args);
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://berocket.com/product/woocommerce-ajax-products-filter
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: 4.0
7
  Tested up to: 5.1.1
8
- Stable tag: 1.3.1.4
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -187,6 +187,9 @@ You can try this plugin's admin side [here](http://berocket.com/product/woocomme
187
 
188
  == Changelog ==
189
 
 
 
 
190
  = 1.3.1.4 =
191
  * Enhancement - Code Security
192
  * Fix - Categories order Default
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: 4.0
7
  Tested up to: 5.1.1
8
+ Stable tag: 1.3.1.5
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
187
 
188
  == Changelog ==
189
 
190
+ = 1.3.1.5 =
191
+ * Enhancement - Code Security
192
+
193
  = 1.3.1.4 =
194
  * Enhancement - Code Security
195
  * Fix - Categories order Default
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/
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
- * Version: 1.3.1.4
7
  * Author: BeRocket
8
  * Requires at least: 4.0
9
  * Author URI: http://berocket.com
@@ -13,6 +13,6 @@
13
  * Domain Path: /languages/
14
  * WC tested up to: 3.5.7
15
  */
16
- define( "BeRocket_AJAX_filters_version", '1.3.1.4' );
17
  define( "BeRocket_AJAX_filters_file", __FILE__ );
18
  include_once('main.php');
3
  * Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  * Plugin URI: https://wordpress.org/plugins/woocommerce-ajax-filters/
5
  * Description: Unlimited AJAX products filters to make your shop perfect
6
+ * Version: 1.3.1.5
7
  * Author: BeRocket
8
  * Requires at least: 4.0
9
  * Author URI: http://berocket.com
13
  * Domain Path: /languages/
14
  * WC tested up to: 3.5.7
15
  */
16
+ define( "BeRocket_AJAX_filters_version", '1.3.1.5' );
17
  define( "BeRocket_AJAX_filters_file", __FILE__ );
18
  include_once('main.php');