Advanced Woo Search - Version 2.40

Version Description

( 2021-11-10 ) = * Fix - Bug with condition function

Download this release

Release Info

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

Code changes from version 2.39 to 2.40

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.39
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.39' );
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.40
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.40' );
100
 
101
  $this->define( 'AWS_DIR', plugin_dir_path( AWS_FILE ) );
102
  $this->define( 'AWS_URL', plugin_dir_url( AWS_FILE ) );
includes/class-aws-helpers.php CHANGED
@@ -707,7 +707,7 @@ if ( ! class_exists( 'AWS_Helpers' ) ) :
707
  static public function get_lang() {
708
 
709
  $current_lang = false;
710
-
711
  if ( ( defined( 'ICL_SITEPRESS_VERSION' ) || function_exists( 'pll_current_language' ) ) ) {
712
 
713
  if ( has_filter('wpml_current_language') ) {
@@ -720,7 +720,7 @@ if ( ! class_exists( 'AWS_Helpers' ) ) :
720
 
721
  $current_lang = qtranxf_getLanguage();
722
 
723
- } elseif ( is_plugin_active( 'falang/falang.php' ) ) {
724
 
725
  $current_lang = Falang()->get_current_language()->slug;
726
 
707
  static public function get_lang() {
708
 
709
  $current_lang = false;
710
+
711
  if ( ( defined( 'ICL_SITEPRESS_VERSION' ) || function_exists( 'pll_current_language' ) ) ) {
712
 
713
  if ( has_filter('wpml_current_language') ) {
720
 
721
  $current_lang = qtranxf_getLanguage();
722
 
723
+ } elseif ( defined( 'FALANG_VERSION' ) ) {
724
 
725
  $current_lang = Falang()->get_current_language()->slug;
726
 
includes/class-aws-table-data.php CHANGED
@@ -310,7 +310,7 @@ if ( ! class_exists( 'AWS_Table_Data' ) ) :
310
 
311
  }
312
 
313
- } elseif ( is_plugin_active( 'falang/falang.php' ) ) {
314
  $falang_post = new \Falang\Core\Post($data['id']);
315
  $is_translated = $falang_post->is_post_type_translatable($falang_post->post_type );
316
 
@@ -365,7 +365,7 @@ if ( ! class_exists( 'AWS_Table_Data' ) ) :
365
  $lang = pll_get_post_language( $this->id ) ? pll_get_post_language( $this->id ) : pll_default_language();
366
  } elseif ( function_exists( 'qtranxf_getLanguageDefault' ) ) {
367
  $lang = qtranxf_getLanguageDefault();
368
- } elseif ( is_plugin_active( 'falang/falang.php' ) ) {
369
  $lang = Falang()->get_current_language()->slug;
370
  }
371
 
310
 
311
  }
312
 
313
+ } elseif ( defined( 'FALANG_VERSION' ) ) {
314
  $falang_post = new \Falang\Core\Post($data['id']);
315
  $is_translated = $falang_post->is_post_type_translatable($falang_post->post_type );
316
 
365
  $lang = pll_get_post_language( $this->id ) ? pll_get_post_language( $this->id ) : pll_default_language();
366
  } elseif ( function_exists( 'qtranxf_getLanguageDefault' ) ) {
367
  $lang = qtranxf_getLanguageDefault();
368
+ } elseif ( defined( 'FALANG_VERSION' ) ) {
369
  $lang = Falang()->get_current_language()->slug;
370
  }
371
 
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.8
7
- Stable tag: 2.39
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -167,6 +167,9 @@ Yep. This plugin is always compatible with the latest version of Woocommerce?
167
 
168
  == Changelog ==
169
 
 
 
 
170
  = 2.39 ( 2021-11-09 ) =
171
  * Add - Support for Falang translation plugin
172
  * Add - Support for WR Nitro theme
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.8
7
+ Stable tag: 2.40
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
167
 
168
  == Changelog ==
169
 
170
+ = 2.40 ( 2021-11-10 ) =
171
+ * Fix - Bug with condition function
172
+
173
  = 2.39 ( 2021-11-09 ) =
174
  * Add - Support for Falang translation plugin
175
  * Add - Support for WR Nitro theme