Search & Filter - Version 1.2.8

Version Description

  • Fixed - an issue with rewrites - thanks @iohannis
Download this release

Release Info

Developer DesignsAndCode
Plugin Icon 128x128 Search & Filter
Version 1.2.8
Comparing to
See all releases

Code changes from version 1.2.7 to 1.2.8

Files changed (2) hide show
  1. readme.txt +5 -2
  2. search-filter.php +10 -5
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: DesignsAndCode
3
  Donate link:
4
  Tags: category, filter, taxonomy, search, wordpress, post type, post date
5
  Requires at least: 3.5
6
- Tested up to: 4.2.1
7
- Stable tag: 1.2.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -34,6 +34,9 @@ The documentation has been updated to include examples almost all configurable o
34
 
35
  == Changelog ==
36
 
 
 
 
37
  = 1.2.7 =
38
  * Fixed - fix for new taxonomy rewrites and problems with multiple selection when using checkboxes
39
  * Fixed - added previously hidden `multiselect` field type
3
  Donate link:
4
  Tags: category, filter, taxonomy, search, wordpress, post type, post date
5
  Requires at least: 3.5
6
+ Tested up to: 4.4
7
+ Stable tag: 1.2.8
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
34
 
35
  == Changelog ==
36
 
37
+ = 1.2.8 =
38
+ * Fixed - an issue with rewrites - thanks [@iohannis](https://wordpress.org/support/profile/iohannis)
39
+
40
  = 1.2.7 =
41
  * Fixed - fix for new taxonomy rewrites and problems with multiple selection when using checkboxes
42
  * Fixed - added previously hidden `multiselect` field type
search-filter.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.designsandcode.com/447/wordpress-search-filter-plugin-for
5
  Description: Search and Filtering system for Pages, Posts, Categories, Tags and Taxonomies
6
  Author: Designs & Code
7
  Author URI: http://www.designsandcode.com/
8
- Version: 1.2.7
9
  Text Domain: searchandfilter
10
  License: GPLv2
11
  */
@@ -16,7 +16,7 @@ License: GPLv2
16
  * Set up Plugin Globals
17
  */
18
  if (!defined('SEARCHANDFILTER_VERSION_NUM'))
19
- define('SEARCHANDFILTER_VERSION_NUM', '1.2.7');
20
 
21
  if (!defined('SEARCHANDFILTER_THEME_DIR'))
22
  define('SEARCHANDFILTER_THEME_DIR', ABSPATH . 'wp-content/themes/' . get_template());
@@ -861,8 +861,15 @@ if ( ! class_exists( 'SearchAndFilter' ) )
861
 
862
  //**due to some new wierd rewrite in WordPress, the first taxonomy which get rewritten to /taxonomyname/taxonomyvalue only uses the first value of an array - so do it manually
863
  if(get_option('permalink_structure')&&($taxcount==0))
864
- {
 
 
865
  $tax_path = $key."/".$taxs."/";
 
 
 
 
 
866
  $this->urlparams .= $tax_path;
867
  }
868
  else
@@ -888,8 +895,6 @@ if ( ! class_exists( 'SearchAndFilter' ) )
888
 
889
  }
890
 
891
-
892
-
893
  /* SEARCH BOX */
894
  if((isset($_POST[SF_FPRE.'search']))&&($this->has_form_posted))
895
  {
5
  Description: Search and Filtering system for Pages, Posts, Categories, Tags and Taxonomies
6
  Author: Designs & Code
7
  Author URI: http://www.designsandcode.com/
8
+ Version: 1.2.8
9
  Text Domain: searchandfilter
10
  License: GPLv2
11
  */
16
  * Set up Plugin Globals
17
  */
18
  if (!defined('SEARCHANDFILTER_VERSION_NUM'))
19
+ define('SEARCHANDFILTER_VERSION_NUM', '1.2.8');
20
 
21
  if (!defined('SEARCHANDFILTER_THEME_DIR'))
22
  define('SEARCHANDFILTER_THEME_DIR', ABSPATH . 'wp-content/themes/' . get_template());
861
 
862
  //**due to some new wierd rewrite in WordPress, the first taxonomy which get rewritten to /taxonomyname/taxonomyvalue only uses the first value of an array - so do it manually
863
  if(get_option('permalink_structure')&&($taxcount==0))
864
+ {
865
+ $key_taxonomy = get_taxonomy( $key );
866
+
867
  $tax_path = $key."/".$taxs."/";
868
+ if((isset($key_taxonomy->rewrite))&&(isset($key_taxonomy->rewrite['slug'])))
869
+ {
870
+ $tax_path = $key_taxonomy->rewrite['slug']."/".$taxs."/";
871
+ }
872
+
873
  $this->urlparams .= $tax_path;
874
  }
875
  else
895
 
896
  }
897
 
 
 
898
  /* SEARCH BOX */
899
  if((isset($_POST[SF_FPRE.'search']))&&($this->has_form_posted))
900
  {