Advanced AJAX Product Filters - Version 1.0.3.2

Version Description

  • Fix - wrong path was committed in previous version that killed plugin
Download this release

Release Info

Developer dholovnia
Plugin Icon wp plugin Advanced AJAX Product Filters
Version 1.0.3.2
Comparing to
See all releases

Code changes from version 1.0.3.1 to 1.0.3.2

Files changed (3) hide show
  1. includes/widget.php +1 -1
  2. readme.txt +2 -2
  3. woocommerce-filters.php +6 -4
includes/widget.php CHANGED
@@ -224,7 +224,7 @@ class BeRocket_AAPF_Widget extends WP_Widget {
224
  $attributes = $this->get_attributes();
225
  $categories = self::get_product_categories( @ json_decode( $instance['product_cat'] ) );
226
 
227
- include plugin_dir_path( __DIR__ ) . "templates/admin.php";
228
  }
229
 
230
  /**
224
  $attributes = $this->get_attributes();
225
  $categories = self::get_product_categories( @ json_decode( $instance['product_cat'] ) );
226
 
227
+ include AAPF_TEMPLATE_PATH . "admin.php";
228
  }
229
 
230
  /**
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://berocket.com
5
  Tags: filters, product filters, ajax product filters, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce ajax product filters
6
  Requires at least: 3.9
7
  Tested up to: 4.1
8
- Stable tag: 1.0.3.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -86,7 +86,7 @@ WooCommerce AJAX Filters - advanced AJAX product filters plugin for WooCommerce.
86
 
87
  == Changelog ==
88
 
89
- = 1.0.3.1 =
90
  * Fix - wrong path was committed in previous version that killed plugin
91
 
92
  = 1.0.3 =
5
  Tags: filters, product filters, ajax product filters, advanced product filters, woocommerce filters, woocommerce product filters, woocommerce ajax product filters
6
  Requires at least: 3.9
7
  Tested up to: 4.1
8
+ Stable tag: 1.0.3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
86
 
87
  == Changelog ==
88
 
89
+ = 1.0.3.2 =
90
  * Fix - wrong path was committed in previous version that killed plugin
91
 
92
  = 1.0.3 =
woocommerce-filters.php CHANGED
@@ -3,11 +3,13 @@
3
  Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  Plugin URI: http://berocket.com/wp-plugins/product-filters
5
  Description: Advanced AJAX Product Filters for WooCommerce
6
- Version: 1.0.3.1
7
  Author: BeRocket
8
  Author URI: http://berocket.com
9
  */
10
 
 
 
11
  require_once dirname( __FILE__ ).'/includes/widget.php';
12
  require_once dirname( __FILE__ ).'/includes/functions.php';
13
 
@@ -36,7 +38,7 @@ class BeRocket_AAPF {
36
  }
37
 
38
  public static function br_render_form(){
39
- include plugin_dir_path( __DIR__ ) . "templates/admin-settings.php";
40
  }
41
 
42
  /**
@@ -55,8 +57,8 @@ class BeRocket_AAPF {
55
  }
56
 
57
  // Get default slug-name.php
58
- if ( ! $template && $name && file_exists( plugin_dir_path( __DIR__ ) . "templates/{$name}.php" ) ) {
59
- $template = plugin_dir_path( __DIR__ ) . "templates/{$name}.php";
60
  }
61
 
62
  // Allow 3rd party plugin filter template file from their plugin
3
  Plugin Name: Advanced AJAX Product Filters for WooCommerce
4
  Plugin URI: http://berocket.com/wp-plugins/product-filters
5
  Description: Advanced AJAX Product Filters for WooCommerce
6
+ Version: 1.0.3.2
7
  Author: BeRocket
8
  Author URI: http://berocket.com
9
  */
10
 
11
+ define( "AAPF_TEMPLATE_PATH", plugin_dir_path( __FILE__ ) . "templates/" );
12
+
13
  require_once dirname( __FILE__ ).'/includes/widget.php';
14
  require_once dirname( __FILE__ ).'/includes/functions.php';
15
 
38
  }
39
 
40
  public static function br_render_form(){
41
+ include AAPF_TEMPLATE_PATH . "admin-settings.php";
42
  }
43
 
44
  /**
57
  }
58
 
59
  // Get default slug-name.php
60
+ if ( ! $template && $name && file_exists( AAPF_TEMPLATE_PATH . "{$name}.php" ) ) {
61
+ $template = AAPF_TEMPLATE_PATH . "{$name}.php";
62
  }
63
 
64
  // Allow 3rd party plugin filter template file from their plugin