Advanced Woo Search - Version 2.24

Version Description

( 2021-03-25 ) = * Fix - Parent theme name detection * Dev - Update helper functions

Download this release

Release Info

Developer Mihail Barinov
Plugin Icon 128x128 Advanced Woo Search
Version 2.24
Comparing to
See all releases

Code changes from version 2.23 to 2.24

advanced-woo-search.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
- Version: 2.23
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: advanced-woo-search
@@ -96,7 +96,7 @@ final class AWS_Main {
96
  */
97
  private function define_constants() {
98
 
99
- $this->define( 'AWS_VERSION', '2.23' );
100
 
101
  $this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
102
  $this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
3
  /*
4
  Plugin Name: Advanced Woo Search
5
  Description: Advance ajax WooCommerce product search.
6
+ Version: 2.24
7
  Author: ILLID
8
  Author URI: https://advanced-woo-search.com/
9
  Text Domain: advanced-woo-search
96
  */
97
  private function define_constants() {
98
 
99
+ $this->define( 'AWS_VERSION', '2.24' );
100
 
101
  $this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
102
  $this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
includes/admin/class-aws-admin-options.php CHANGED
@@ -664,51 +664,6 @@ if ( ! class_exists( 'AWS_Admin_Options' ) ) :
664
 
665
  }
666
 
667
- /**
668
- * Get array of index table options
669
- * @return array $options
670
- */
671
- static public function get_index_options() {
672
-
673
- /**
674
- * Apply or not WP filters to indexed content
675
- * @since 1.82
676
- * @param bool false
677
- */
678
- $apply_filters = apply_filters( 'aws_index_apply_filters', false );
679
-
680
- $index_variations_option = AWS()->get_settings( 'index_variations' );
681
- $index_sources_option = AWS()->get_settings( 'index_sources' );
682
-
683
- $index_variations = $index_variations_option && $index_variations_option === 'false' ? false : true;
684
- $index_title = is_array( $index_sources_option ) && isset( $index_sources_option['title'] ) && ! $index_sources_option['title'] ? false : true;
685
- $index_content = is_array( $index_sources_option ) && isset( $index_sources_option['content'] ) && ! $index_sources_option['content'] ? false : true;
686
- $index_sku = is_array( $index_sources_option ) && isset( $index_sources_option['sku'] ) && ! $index_sources_option['sku'] ? false : true;
687
- $index_excerpt = is_array( $index_sources_option ) && isset( $index_sources_option['excerpt'] ) && ! $index_sources_option['excerpt'] ? false : true;
688
- $index_category = is_array( $index_sources_option ) && isset( $index_sources_option['category'] ) && ! $index_sources_option['category'] ? false : true;
689
- $index_tag = is_array( $index_sources_option ) && isset( $index_sources_option['tag'] ) && ! $index_sources_option['tag'] ? false : true;
690
- $index_id = is_array( $index_sources_option ) && isset( $index_sources_option['id'] ) && ! $index_sources_option['id'] ? false : true;
691
-
692
- $index_vars = array(
693
- 'variations' => $index_variations,
694
- 'title' => $index_title,
695
- 'content' => $index_content,
696
- 'sku' => $index_sku,
697
- 'excerpt' => $index_excerpt,
698
- 'category' => $index_category,
699
- 'tag' => $index_tag,
700
- 'id' => $index_id,
701
- );
702
-
703
- $options = array(
704
- 'apply_filters' => $apply_filters,
705
- 'index' => $index_vars,
706
- );
707
-
708
- return $options;
709
-
710
- }
711
-
712
  }
713
 
714
  endif;
664
 
665
  }
666
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
667
  }
668
 
669
  endif;
includes/admin/class-aws-admin.php CHANGED
@@ -191,7 +191,7 @@ class AWS_Admin {
191
 
192
  if ( $options ) {
193
 
194
- $index_options = AWS_Admin_Options::get_index_options();
195
 
196
  foreach( $options as $options_key => $options_tab ) {
197
  foreach( $options_tab as $key => $option ) {
191
 
192
  if ( $options ) {
193
 
194
+ $index_options = AWS_Helpers::get_index_options();
195
 
196
  foreach( $options as $options_key => $options_tab ) {
197
  foreach( $options_tab as $key => $option ) {
includes/class-aws-helpers.php CHANGED
@@ -910,6 +910,51 @@ if ( ! class_exists( 'AWS_Helpers' ) ) :
910
 
911
  }
912
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
913
  }
914
 
915
  endif;
910
 
911
  }
912
 
913
+ /**
914
+ * Get array of index table options
915
+ * @return array $options
916
+ */
917
+ static public function get_index_options() {
918
+
919
+ /**
920
+ * Apply or not WP filters to indexed content
921
+ * @since 1.82
922
+ * @param bool false
923
+ */
924
+ $apply_filters = apply_filters( 'aws_index_apply_filters', false );
925
+
926
+ $index_variations_option = AWS()->get_settings( 'index_variations' );
927
+ $index_sources_option = AWS()->get_settings( 'index_sources' );
928
+
929
+ $index_variations = $index_variations_option && $index_variations_option === 'false' ? false : true;
930
+ $index_title = is_array( $index_sources_option ) && isset( $index_sources_option['title'] ) && ! $index_sources_option['title'] ? false : true;
931
+ $index_content = is_array( $index_sources_option ) && isset( $index_sources_option['content'] ) && ! $index_sources_option['content'] ? false : true;
932
+ $index_sku = is_array( $index_sources_option ) && isset( $index_sources_option['sku'] ) && ! $index_sources_option['sku'] ? false : true;
933
+ $index_excerpt = is_array( $index_sources_option ) && isset( $index_sources_option['excerpt'] ) && ! $index_sources_option['excerpt'] ? false : true;
934
+ $index_category = is_array( $index_sources_option ) && isset( $index_sources_option['category'] ) && ! $index_sources_option['category'] ? false : true;
935
+ $index_tag = is_array( $index_sources_option ) && isset( $index_sources_option['tag'] ) && ! $index_sources_option['tag'] ? false : true;
936
+ $index_id = is_array( $index_sources_option ) && isset( $index_sources_option['id'] ) && ! $index_sources_option['id'] ? false : true;
937
+
938
+ $index_vars = array(
939
+ 'variations' => $index_variations,
940
+ 'title' => $index_title,
941
+ 'content' => $index_content,
942
+ 'sku' => $index_sku,
943
+ 'excerpt' => $index_excerpt,
944
+ 'category' => $index_category,
945
+ 'tag' => $index_tag,
946
+ 'id' => $index_id,
947
+ );
948
+
949
+ $options = array(
950
+ 'apply_filters' => $apply_filters,
951
+ 'index' => $index_vars,
952
+ );
953
+
954
+ return $options;
955
+
956
+ }
957
+
958
  }
959
 
960
  endif;
includes/class-aws-integrations.php CHANGED
@@ -49,10 +49,10 @@ if ( ! class_exists( 'AWS_Integrations' ) ) :
49
  $theme = function_exists( 'wp_get_theme' ) ? wp_get_theme() : false;
50
 
51
  if ( $theme ) {
52
- $this->current_theme = $theme->name;
53
- $this->child_theme = $theme->name;
54
  if ( $theme->parent() ) {
55
- $this->current_theme = $theme->parent();
56
  }
57
  }
58
 
49
  $theme = function_exists( 'wp_get_theme' ) ? wp_get_theme() : false;
50
 
51
  if ( $theme ) {
52
+ $this->current_theme = $theme->get( 'Name' );
53
+ $this->child_theme = $theme->get( 'Name' );
54
  if ( $theme->parent() ) {
55
+ $this->current_theme = $theme->parent()->get( 'Name' );
56
  }
57
  }
58
 
includes/class-aws-table.php CHANGED
@@ -336,7 +336,7 @@ if ( ! class_exists( 'AWS_Table' ) ) :
336
  */
337
  $posts = apply_filters( 'aws_index_product_ids', $posts );
338
 
339
- $options = AWS_Admin_Options::get_index_options();
340
 
341
  foreach ( $posts as $post_item ) {
342
 
336
  */
337
  $posts = apply_filters( 'aws_index_product_ids', $posts );
338
 
339
+ $options = AWS_Helpers::get_index_options();
340
 
341
  foreach ( $posts as $post_item ) {
342
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
5
  Requires at least: 4.0
6
  Tested up to: 5.7
7
- Stable tag: 2.23
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -38,6 +38,7 @@ Advanced Woo Search - powerful search plugin for WooCommerce. Supports **AJAX**
38
  * Seamless integration option for easy replacing your current search form
39
  * **WPML**, **Polylang**, **WooCommerce Multilingual**, **qTranslate** support
40
  * **WPML multi-currency** support
 
41
  * Custom Product Tabs for WooCommerce plugin support
42
  * Search Exclude plugin support
43
 
@@ -166,6 +167,10 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
166
 
167
  == Changelog ==
168
 
 
 
 
 
169
  = 2.23 ( 2021-03-22 ) =
170
  * Add - Performance options
171
  * Add - Support for TI WooCommerce Wishlist plugin
4
  Tags: widget, plugin, woocommerce, search, product search, woocommerce search, ajax search, live search, custom search, ajax, shortcode, better search, relevance search, relevant search, search by sku, search plugin, shop, store, wordpress search, wp ajax search, wp search, wp search plugin, sidebar, ecommerce, merketing, products, category search, instant-search, search highlight, woocommerce advanced search, woocommerce live search, WooCommerce Plugin, woocommerce product search
5
  Requires at least: 4.0
6
  Tested up to: 5.7
7
+ Stable tag: 2.24
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
38
  * Seamless integration option for easy replacing your current search form
39
  * **WPML**, **Polylang**, **WooCommerce Multilingual**, **qTranslate** support
40
  * **WPML multi-currency** support
41
+ * Page builder plugins support: Gutenberg, Elementor, Beaver Builder, WPBakery, Divi Builder
42
  * Custom Product Tabs for WooCommerce plugin support
43
  * Search Exclude plugin support
44
 
167
 
168
  == Changelog ==
169
 
170
+ = 2.24 ( 2021-03-25 ) =
171
+ * Fix - Parent theme name detection
172
+ * Dev - Update helper functions
173
+
174
  = 2.23 ( 2021-03-22 ) =
175
  * Add - Performance options
176
  * Add - Support for TI WooCommerce Wishlist plugin