Advanced AJAX Product Filters - Version 1.3.1.4

Version Description

  • Enhancement - Code Security
  • Fix - Categories order Default
Download this release

Release Info

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

Code changes from version 1.3.1.3 to 1.3.1.4

berocket/includes/custom_post.php CHANGED
@@ -395,6 +395,7 @@ if ( ! class_exists('BeRocket_custom_post_class') ) {
395
  global $post;
396
  $post_id = $post->ID;
397
  $order_position = get_post_meta( $post_id, 'berocket_post_order', true );
 
398
  switch ( $column ) {
399
  case "berocket_sortable":
400
  echo $this->sortable_html_position($post_id, $order_position);
395
  global $post;
396
  $post_id = $post->ID;
397
  $order_position = get_post_meta( $post_id, 'berocket_post_order', true );
398
+ $order_position = intval($order_position);
399
  switch ( $column ) {
400
  case "berocket_sortable":
401
  echo $this->sortable_html_position($post_id, $order_position);
berocket/includes/error_notices.php CHANGED
@@ -50,7 +50,7 @@ if( ! class_exists('BeRocket_error_notices') ) {
50
  if( empty($plugin_id) ) {
51
  return '';
52
  }
53
- $block_id = rand();
54
  $errors = self::get_plugin_error($plugin_id);
55
  $errors = array_reverse($errors);
56
  $html = '<h3>Error List</h3>';
50
  if( empty($plugin_id) ) {
51
  return '';
52
  }
53
+ $block_id = $plugin_id;
54
  $errors = self::get_plugin_error($plugin_id);
55
  $errors = array_reverse($errors);
56
  $html = '<h3>Error List</h3>';
berocket/libraries/check_init.php CHANGED
@@ -77,7 +77,7 @@ if( ! class_exists('BeRocket_framework_check_init_lib') ) {
77
  $this->notices[] = array(
78
  'start' => 0,
79
  'end' => 0,
80
- 'name' => 'framework_init_check_'.md5($data['notice']),
81
  'html' => '<strong>'.$data['notice'].'</strong>',
82
  'righthtml' => '',
83
  'rightwidth' => 0,
77
  $this->notices[] = array(
78
  'start' => 0,
79
  'end' => 0,
80
+ 'name' => 'framework_init_check',
81
  'html' => '<strong>'.$data['notice'].'</strong>',
82
  'righthtml' => '',
83
  'rightwidth' => 0,
includes/custom_post.php CHANGED
@@ -350,7 +350,7 @@ class BeRocket_AAPF_single_filter extends BeRocket_custom_post_class {
350
  'selected_area' => __('Selected Filters area', 'BeRocket_AJAX_domain'),
351
  'search_box' => __('Search Box', 'BeRocket_AJAX_domain')
352
  );
353
- echo __('Widget type: ', 'BeRocket_AJAX_domain') . '<strong>' . ( isset($widget_types[$filter['widget_type']]) ? $widget_types[$filter['widget_type']] : $filter['widget_type'] ) . '</strong>';
354
  echo '<br>';
355
  if( $filter['widget_type'] == 'search_box' ) {
356
  $search_type = array(
@@ -363,9 +363,9 @@ class BeRocket_AAPF_single_filter extends BeRocket_custom_post_class {
363
  if( $i > $filter['search_box_count']) break;
364
  echo $i . ') ';
365
  if( $search_box['type'] == 'attribute' ) {
366
- echo __('Attribute: ', 'BeRocket_AJAX_domain') . '<strong>' . $search_box['attribute'] . '</strong>';
367
  } elseif( $search_box['type'] == 'custom_taxonomy' ) {
368
- echo __('Custom Taxonomy: ', 'BeRocket_AJAX_domain') . '<strong>' . $search_box['custom_taxonomy'] . '</strong>';
369
  } elseif( $search_box['type'] == 'tag' ) {
370
  echo __('Tag', 'BeRocket_AJAX_domain');
371
  }
350
  'selected_area' => __('Selected Filters area', 'BeRocket_AJAX_domain'),
351
  'search_box' => __('Search Box', 'BeRocket_AJAX_domain')
352
  );
353
+ echo __('Widget type: ', 'BeRocket_AJAX_domain') . '<strong>' . ( isset($widget_types[$filter['widget_type']]) ? $widget_types[$filter['widget_type']] : esc_html($filter['widget_type']) ) . '</strong>';
354
  echo '<br>';
355
  if( $filter['widget_type'] == 'search_box' ) {
356
  $search_type = array(
363
  if( $i > $filter['search_box_count']) break;
364
  echo $i . ') ';
365
  if( $search_box['type'] == 'attribute' ) {
366
+ echo __('Attribute: ', 'BeRocket_AJAX_domain') . '<strong>' . esc_html($search_box['attribute']) . '</strong>';
367
  } elseif( $search_box['type'] == 'custom_taxonomy' ) {
368
+ echo __('Custom Taxonomy: ', 'BeRocket_AJAX_domain') . '<strong>' . esc_html($search_box['custom_taxonomy']) . '</strong>';
369
  } elseif( $search_box['type'] == 'tag' ) {
370
  echo __('Tag', 'BeRocket_AJAX_domain');
371
  }
includes/widget.php CHANGED
@@ -743,12 +743,11 @@ class BeRocket_AAPF_Widget extends WP_Widget {
743
  $terms = br_get_cache ( $custom_taxonomy.$order_values_by, $filter_type.$wp_check_product_cat );
744
  if( br_is_filtered() || $terms === false || ( ! empty($child_parent) && ( $child_parent == 'parent' || $child_parent == 'child' ) ) ) {
745
  if ( $custom_taxonomy == 'product_cat' ) {
746
- $terms_unsort = br_get_cat_hierarchy(array());
747
 
748
  if( ! br_is_filtered() && ( empty($child_parent) || ( $child_parent != 'parent' && $child_parent != 'child' ) ) ) {
749
- $terms_unsort = self::set_terms_on_same_level( $terms_unsort, array(), ($type != 'checkbox' && $type != 'radio') );
750
  }
751
- $terms = BeRocket_AAPF_Widget::get_attribute_values( $custom_taxonomy, 'id', ( empty($br_options['show_all_values']) ), ( ! empty($br_options['recount_products']) ), $terms_unsort, ( isset($cat_value_limit) ? $cat_value_limit : null ), $operator );
752
  } else {
753
  $terms = self::get_terms_child_parent ( $child_parent, $custom_taxonomy, FALSE, ( isset($child_parent_depth) ? $child_parent_depth : 0 ) );
754
  $terms = BeRocket_AAPF_Widget::get_attribute_values( $custom_taxonomy, 'id', ( empty($br_options['show_all_values']) ), ( ! empty($br_options['recount_products']) ), $terms, ( isset($cat_value_limit) ? $cat_value_limit : null ), $operator );
@@ -760,6 +759,9 @@ class BeRocket_AAPF_Widget extends WP_Widget {
760
  "order_values_type"=> (empty($order_values_type) || $order_values_type == 'asc' ? SORT_ASC : SORT_DESC)
761
  ) );
762
  }
 
 
 
763
  if ( ! br_is_filtered() && $child_parent != 'parent' && $child_parent != 'child' ) {
764
  br_set_cache( $custom_taxonomy . $order_values_by, $terms, $filter_type . $wp_check_product_cat, BeRocket_AJAX_cache_expire );
765
  }
743
  $terms = br_get_cache ( $custom_taxonomy.$order_values_by, $filter_type.$wp_check_product_cat );
744
  if( br_is_filtered() || $terms === false || ( ! empty($child_parent) && ( $child_parent == 'parent' || $child_parent == 'child' ) ) ) {
745
  if ( $custom_taxonomy == 'product_cat' ) {
746
+ $terms = br_get_cat_hierarchy(array());
747
 
748
  if( ! br_is_filtered() && ( empty($child_parent) || ( $child_parent != 'parent' && $child_parent != 'child' ) ) ) {
749
+ $terms = self::set_terms_on_same_level( $terms, array(), ($type != 'checkbox' && $type != 'radio') );
750
  }
 
751
  } else {
752
  $terms = self::get_terms_child_parent ( $child_parent, $custom_taxonomy, FALSE, ( isset($child_parent_depth) ? $child_parent_depth : 0 ) );
753
  $terms = BeRocket_AAPF_Widget::get_attribute_values( $custom_taxonomy, 'id', ( empty($br_options['show_all_values']) ), ( ! empty($br_options['recount_products']) ), $terms, ( isset($cat_value_limit) ? $cat_value_limit : null ), $operator );
759
  "order_values_type"=> (empty($order_values_type) || $order_values_type == 'asc' ? SORT_ASC : SORT_DESC)
760
  ) );
761
  }
762
+ if( $custom_taxonomy == 'product_cat' ) {
763
+ $terms = BeRocket_AAPF_Widget::get_attribute_values( $custom_taxonomy, 'id', ( empty($br_options['show_all_values']) ), ( ! empty($br_options['recount_products']) ), $terms, ( isset($cat_value_limit) ? $cat_value_limit : null ), $operator );
764
+ }
765
  if ( ! br_is_filtered() && $child_parent != 'parent' && $child_parent != 'child' ) {
766
  br_set_cache( $custom_taxonomy . $order_values_by, $terms, $filter_type . $wp_check_product_cat, BeRocket_AJAX_cache_expire );
767
  }
main.php CHANGED
@@ -23,7 +23,19 @@ class BeRocket_AAPF extends BeRocket_Framework {
23
  'value' => '/values',
24
  'split' => '/',
25
  );
 
 
 
 
 
 
 
 
 
 
26
  function __construct () {
 
 
27
  $this->info = array(
28
  'id' => 1,
29
  'version' => BeRocket_AJAX_filters_version,
@@ -251,7 +263,7 @@ class BeRocket_AAPF extends BeRocket_Framework {
251
  }
252
  }
253
  function init_validation() {
254
- return ( ( is_plugin_active( 'woocommerce/woocommerce.php' ) || is_plugin_active_for_network( 'woocommerce/woocommerce.php' ) ) &&
255
  br_get_woocommerce_version() >= 2.1 );
256
  }
257
  public function init () {
@@ -1388,40 +1400,39 @@ jQuery(document).on('change', '.br_selected_area_show', br_selected_area_show);
1388
  }
1389
  }
1390
 
1391
- switch ( $version_index ) {
1392
- case 1:
1393
- update_option('berocket_filter_open_wizard_on_settings', true);
1394
- case 2:
1395
- update_option( 'berocket_permalink_option', $this->default_permalink );
1396
- case 3:
1397
- $new_filter_widgets = get_option('widget_berocket_aapf_group');
1398
- if( is_array($new_filter_widgets) ) {
1399
- foreach($new_filter_widgets as &$new_filter_widget) {
1400
- if( is_array($new_filter_widget) && isset($new_filter_widget['title']) ) {
1401
- $new_filter_widget['title'] = '';
1402
- }
1403
  }
1404
- update_option('widget_berocket_aapf_group', $new_filter_widgets);
1405
  }
1406
- case 4:
1407
- case 5:
1408
- if( ! empty($version) ) {
1409
- $BeRocket_AAPF_single_filter = BeRocket_AAPF_single_filter::getInstance();
1410
- $filters = $BeRocket_AAPF_single_filter->get_custom_posts();
1411
- foreach($filters as $filter) {
1412
- $filter_option = $BeRocket_AAPF_single_filter->get_option($filter);
1413
- if( empty($filter_option['widget_collapse_disable']) ) {
1414
- $filter_option['widget_collapse_enable'] = '1';
1415
- } else {
1416
- $filter_option['widget_collapse_enable'] = '';
1417
- }
1418
- $filter_post = get_post($filter);
1419
- $_POST[$BeRocket_AAPF_single_filter->post_name] = $filter_option;
1420
- $BeRocket_AAPF_single_filter->wc_save_product_without_check($filter, $filter_post);
1421
  }
 
 
 
1422
  }
1423
- default:
1424
- break;
1425
  }
1426
 
1427
  update_option( 'br_filters_options', $option );
23
  'value' => '/values',
24
  'split' => '/',
25
  );
26
+ protected $check_init_array = array(
27
+ array(
28
+ 'check' => 'woocommerce_version',
29
+ 'data' => array(
30
+ 'version' => '3.0',
31
+ 'operator' => '>=',
32
+ 'notice' => 'Plugin WooCommerce AJAX Products Filter required WooCommerce version 3.0 or higher'
33
+ )
34
+ ),
35
+ );
36
  function __construct () {
37
+ global $berocket_unique_value;
38
+ $berocket_unique_value = 1;
39
  $this->info = array(
40
  'id' => 1,
41
  'version' => BeRocket_AJAX_filters_version,
263
  }
264
  }
265
  function init_validation() {
266
+ return parent::init_validation() && ( ( is_plugin_active( 'woocommerce/woocommerce.php' ) || is_plugin_active_for_network( 'woocommerce/woocommerce.php' ) ) &&
267
  br_get_woocommerce_version() >= 2.1 );
268
  }
269
  public function init () {
1400
  }
1401
  }
1402
 
1403
+ if( $version_index <= 1 ) {
1404
+ update_option('berocket_filter_open_wizard_on_settings', true);
1405
+ }
1406
+ if( $version_index <= 2 ) {
1407
+ update_option( 'berocket_permalink_option', $this->default_permalink );
1408
+ }
1409
+ if( $version_index <= 3 ) {
1410
+ $new_filter_widgets = get_option('widget_berocket_aapf_group');
1411
+ if( is_array($new_filter_widgets) ) {
1412
+ foreach($new_filter_widgets as &$new_filter_widget) {
1413
+ if( is_array($new_filter_widget) && isset($new_filter_widget['title']) ) {
1414
+ $new_filter_widget['title'] = '';
1415
  }
 
1416
  }
1417
+ update_option('widget_berocket_aapf_group', $new_filter_widgets);
1418
+ }
1419
+ }
1420
+ if( $version_index <= 5 ) {
1421
+ if( ! empty($version) ) {
1422
+ $BeRocket_AAPF_single_filter = BeRocket_AAPF_single_filter::getInstance();
1423
+ $filters = $BeRocket_AAPF_single_filter->get_custom_posts();
1424
+ foreach($filters as $filter) {
1425
+ $filter_option = $BeRocket_AAPF_single_filter->get_option($filter);
1426
+ if( empty($filter_option['widget_collapse_disable']) ) {
1427
+ $filter_option['widget_collapse_enable'] = '1';
1428
+ } else {
1429
+ $filter_option['widget_collapse_enable'] = '';
 
 
1430
  }
1431
+ $filter_post = get_post($filter);
1432
+ $_POST[$BeRocket_AAPF_single_filter->post_name] = $filter_option;
1433
+ $BeRocket_AAPF_single_filter->wc_save_product_without_check($filter, $filter_post);
1434
  }
1435
+ }
 
1436
  }
1437
 
1438
  update_option( 'br_filters_options', $option );
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.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -187,6 +187,10 @@ You can try this plugin's admin side [here](http://berocket.com/product/woocomme
187
 
188
  == Changelog ==
189
 
 
 
 
 
190
  = 1.3.1.3 =
191
  * Enhancement - Code Security
192
  * Enhancement - Added Purge cache button
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
 
188
  == Changelog ==
189
 
190
+ = 1.3.1.4 =
191
+ * Enhancement - Code Security
192
+ * Fix - Categories order Default
193
+
194
  = 1.3.1.3 =
195
  * Enhancement - Code Security
196
  * Enhancement - Added Purge cache button
templates/checkbox.php CHANGED
@@ -10,7 +10,9 @@
10
  */
11
  ?>
12
  <?php
13
- $random_name = rand();
 
 
14
  $hiden_value = false;
15
  $child_parent = berocket_isset($child_parent);
16
  $is_child_parent = $child_parent == 'child';
10
  */
11
  ?>
12
  <?php
13
+ global $berocket_unique_value;
14
+ $berocket_unique_value++;
15
+ $random_name = strval($berocket_unique_value);
16
  $hiden_value = false;
17
  $child_parent = berocket_isset($child_parent);
18
  $is_child_parent = $child_parent == 'child';
templates/color.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- $random_name = rand();
 
 
3
  $hiden_value = false;
4
  $child_parent = berocket_isset($child_parent);
5
  $is_child_parent = $child_parent == 'child';
1
  <?php
2
+ global $berocket_unique_value;
3
+ $berocket_unique_value++;
4
+ $random_name = strval($berocket_unique_value);
5
  $hiden_value = false;
6
  $child_parent = berocket_isset($child_parent);
7
  $is_child_parent = $child_parent == 'child';
templates/disabled/checkbox.php CHANGED
@@ -10,7 +10,9 @@
10
  */
11
  ?>
12
  <?php
13
- $random_name = rand();
 
 
14
  $hiden_value = false;
15
  $child_parent = berocket_isset($child_parent);
16
  $is_child_parent = $child_parent == 'child';
10
  */
11
  ?>
12
  <?php
13
+ global $berocket_unique_value;
14
+ $berocket_unique_value++;
15
+ $random_name = strval($berocket_unique_value);
16
  $hiden_value = false;
17
  $child_parent = berocket_isset($child_parent);
18
  $is_child_parent = $child_parent == 'child';
templates/disabled/color.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- $random_name = rand();
 
 
3
  $hiden_value = false;
4
  $child_parent = berocket_isset($child_parent);
5
  $is_child_parent = $child_parent == 'child';
1
  <?php
2
+ global $berocket_unique_value;
3
+ $berocket_unique_value++;
4
+ $random_name = strval($berocket_unique_value);
5
  $hiden_value = false;
6
  $child_parent = berocket_isset($child_parent);
7
  $is_child_parent = $child_parent == 'child';
templates/disabled/radio.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- $random_name = rand();
 
 
3
  $hiden_value = false;
4
  $is_child_parent = $child_parent == 'child';
5
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
1
  <?php
2
+ global $berocket_unique_value;
3
+ $berocket_unique_value++;
4
+ $random_name = strval($berocket_unique_value);
5
  $hiden_value = false;
6
  $is_child_parent = $child_parent == 'child';
7
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
templates/disabled/select.php CHANGED
@@ -8,6 +8,9 @@
8
  * @package WooCommerce-Filters/Templates
9
  * @version 1.0.1
10
  */
 
 
 
11
  $child_parent = berocket_isset($child_parent);
12
  $is_child_parent = $child_parent == 'child';
13
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
@@ -16,7 +19,6 @@ if ( $child_parent == 'parent' ) {
16
  $child_parent_depth = 0;
17
  }
18
  $is_first = true;
19
- $random_name = rand();
20
  if ( $is_child_parent ) {
21
  ?>
22
  <li class="berocket_child_parent_sample select<?php if( ! empty($select_multiple) ) echo ' multiple'; ?>"><ul>
8
  * @package WooCommerce-Filters/Templates
9
  * @version 1.0.1
10
  */
11
+ global $berocket_unique_value;
12
+ $berocket_unique_value++;
13
+ $random_name = strval($berocket_unique_value);
14
  $child_parent = berocket_isset($child_parent);
15
  $is_child_parent = $child_parent == 'child';
16
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
19
  $child_parent_depth = 0;
20
  }
21
  $is_first = true;
 
22
  if ( $is_child_parent ) {
23
  ?>
24
  <li class="berocket_child_parent_sample select<?php if( ! empty($select_multiple) ) echo ' multiple'; ?>"><ul>
templates/disabled/slider.php CHANGED
@@ -1,4 +1,7 @@
1
- <?php $unique = rand( 0, time() );
 
 
 
2
  $is_child_parent = ( isset($child_parent) && $child_parent == 'child' );
3
  $is_child_parent_or = ( isset($child_parent) && ( $child_parent == 'child' || $child_parent == 'parent' ) );
4
  if ( $is_child_parent ) {
1
+ <?php
2
+ global $berocket_unique_value;
3
+ $berocket_unique_value++;
4
+ $unique = strval($berocket_unique_value);
5
  $is_child_parent = ( isset($child_parent) && $child_parent == 'child' );
6
  $is_child_parent_or = ( isset($child_parent) && ( $child_parent == 'child' || $child_parent == 'parent' ) );
7
  if ( $is_child_parent ) {
templates/radio.php CHANGED
@@ -1,5 +1,7 @@
1
  <?php
2
- $random_name = rand();
 
 
3
  $hiden_value = false;
4
  $is_child_parent = $child_parent == 'child';
5
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
1
  <?php
2
+ global $berocket_unique_value;
3
+ $berocket_unique_value++;
4
+ $random_name = strval($berocket_unique_value);
5
  $hiden_value = false;
6
  $is_child_parent = $child_parent == 'child';
7
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
templates/select.php CHANGED
@@ -8,6 +8,9 @@
8
  * @package WooCommerce-Filters/Templates
9
  * @version 1.0.1
10
  */
 
 
 
11
  $child_parent = berocket_isset($child_parent);
12
  $is_child_parent = $child_parent == 'child';
13
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
@@ -16,7 +19,6 @@ if ( $child_parent == 'parent' ) {
16
  $child_parent_depth = 0;
17
  }
18
  $is_first = true;
19
- $random_name = rand();
20
  if ( $is_child_parent ) {
21
  ?>
22
  <li class="berocket_child_parent_sample select<?php if( ! empty($select_multiple) ) echo ' multiple'; ?>"><ul>
8
  * @package WooCommerce-Filters/Templates
9
  * @version 1.0.1
10
  */
11
+ global $berocket_unique_value;
12
+ $berocket_unique_value++;
13
+ $random_name = strval($berocket_unique_value);
14
  $child_parent = berocket_isset($child_parent);
15
  $is_child_parent = $child_parent == 'child';
16
  $is_child_parent_or = ( $child_parent == 'child' || $child_parent == 'parent' );
19
  $child_parent_depth = 0;
20
  }
21
  $is_first = true;
 
22
  if ( $is_child_parent ) {
23
  ?>
24
  <li class="berocket_child_parent_sample select<?php if( ! empty($select_multiple) ) echo ' multiple'; ?>"><ul>
templates/slider.php CHANGED
@@ -1,4 +1,7 @@
1
- <?php $unique = rand( 0, time() );
 
 
 
2
  $is_child_parent = ( isset($child_parent) && $child_parent == 'child' );
3
  $is_child_parent_or = ( isset($child_parent) && ( $child_parent == 'child' || $child_parent == 'parent' ) );
4
  if ( $is_child_parent ) {
1
+ <?php
2
+ global $berocket_unique_value;
3
+ $berocket_unique_value++;
4
+ $unique = strval($berocket_unique_value);
5
  $is_child_parent = ( isset($child_parent) && $child_parent == 'child' );
6
  $is_child_parent_or = ( isset($child_parent) && ( $child_parent == 'child' || $child_parent == 'parent' ) );
7
  if ( $is_child_parent ) {
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.3
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.3' );
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.4
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.4' );
17
  define( "BeRocket_AJAX_filters_file", __FILE__ );
18
  include_once('main.php');