Search & Filter - Version 1.2.14

Version Description

  • Admin notice added - Version 3 is coming soon - beta testers wanted + tons of improvements and changes coming - make sure you know what's in store.
  • Update docs URLs
  • Fix - an issue with an <option> element self closing in the multiselect field (thanks @matzeatweb)
Download this release

Release Info

Developer codeamp
Plugin Icon 128x128 Search & Filter
Version 1.2.14
Comparing to
See all releases

Code changes from version 1.2.13 to 1.2.14

Files changed (4) hide show
  1. of-admin.php +91 -22
  2. of-taxonomy-walker.php +1 -1
  3. readme.txt +15 -9
  4. search-filter.php +6 -6
of-admin.php CHANGED
@@ -15,7 +15,21 @@
15
  $menu_slug = 'searchandfilter-settings';
16
  $function = 'searchandfilter_settings';
17
  $icon_url = SEARCHANDFILTER_PLUGIN_URL.'/admin/icon.png';
18
- add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon_url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  // Add submenu page with same slug as parent to ensure no duplicates
21
  $sub_menu_title = 'Settings';
@@ -34,24 +48,30 @@
34
  if (!current_user_can('manage_options')) {
35
  wp_die('You do not have sufficient permissions to access this page.');
36
  }
37
- echo '
38
- <script type="text/javascript">
39
- /*jQuery(function() {
40
- jQuery(\'pre code\').each(function(i, e) {hljs.highlightBlock(e)});
41
- });*/
42
- </script>
43
- ';
 
 
 
 
 
 
44
  echo '<div class="wrap"><div id="icon-plugins" class="icon32"></div>';
45
  echo '<h2>Search &amp; Filter</h2>';
46
  echo "<h3>About</h3>";
47
  echo '<div class="of-caption">
48
- Search &amp; Filter is a simple search and filtering plugin for Wordpress brought to you by <a href="http://www.designsandcode.com" target="_blank">Designs &amp; Code</a>.<br /><br />
49
- It is essentially an advancement of the WordPress search box, adding taxonomy and post type filters to really refine your searches.<br /><br />
50
  You can search by Category, Tag, Custom Taxonomy, Post Type or any combination of these easily - you can even remove the search box and simply use it as a filtering system for your posts and pages. Taxonomies and Post Types can be displayed as dropdown selects, checkboxes, radio buttons or multiselects.
51
  </div>';
52
  echo "<h3>Documentation</h3>";
53
  echo '<div class="of-caption">
54
- Advanced documentation and examples has now moved - find it on our <a href="http://docs.designsandcode.com/search-filter/" target="_blank">Search &amp; Filter Plugin Documentation</a>.<br /><br />
55
  Please find below limited documentation to get you started.
56
  </div>';
57
 
@@ -70,7 +90,7 @@
70
 
71
 
72
  echo "<h3>Arguments</h3>";
73
- echo '<div class="of-caption">Examples for most of the arguments below can be found over on the <a href="http://docs.designsandcode.com/search-filter/#examples" target="_blank">Search &amp; Filter Plugin Documentation</a>.</div>';
74
  //display table
75
  $ofVarListTable = new OF_Variable_List_Table();
76
  $ofVarListTable->prepare_items();
@@ -95,7 +115,7 @@
95
  Search &amp; Filter uses standard inputs and selects, form elements are contained in an unordered list - styling should be easy. <a href="'.SEARCHANDFILTER_PLUGIN_URL . '/style.css'.'" target="_blank">Please see CSS file for base styles used.</a>
96
  </div>';
97
 
98
- echo "<h3>Search &amp; Filter Prefers Clean URLs!</h3>";
99
  echo '<div class="of-caption">
100
  If any fields are submitted that have blank values they do not get added to the URL, for example, if the search box is empty when submitting, you will not find a `?s=` in the URL.<br /><br />
101
 
@@ -107,18 +127,15 @@
107
  Becomes:<br />
108
  <pre><code class="of-url">www.yourdomain.com/category/uncategorized/?s=searchterm&amp;tag=shoes&amp;customtaxonomy=customvalue</code></pre><br />
109
 
110
- The built in Wordpress rewrites wouldn\'t normally handle this.
111
-
112
-
113
  </div>';
114
 
115
  echo "<h3>Links</h3>";
116
  echo '<div class="of-caption">
117
  <ul>
118
- <li><a href="http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/" target="_blank">Plugin Support Page &amp; Discussion</a></li>
119
- <li><a href="http://docs.designsandcode.com/search-filter/" target="_blank">Plugin Documentation</a></li>
120
  <li><a href="http://wordpress.org/plugins/search-filter" target="_blank">Plugin on WordPress.org</a></li>
121
- <li><a href="https://github.com/rmorse/wp-search-filter" target="_blank">Plugin on Github</a></li>
 
122
  </ul>
123
  </div>';
124
 
@@ -148,17 +165,69 @@
148
  {
149
  $this_plugin = SEARCHANDFILTER_BASENAME;
150
  }
151
- //var_dump($this_plugin);
152
  if ($file == $this_plugin)
153
  {
154
  // The "page" query string value must be equal to the slug
155
  // of the Settings admin page we defined earlier, which in
156
  // this case equals "myplugin-settings".
157
- $settings_link = '<a href="' . get_admin_url() . 'admin.php?page=searchandfilter-settings">Settings</a>';
158
  array_unshift($links, $settings_link);
159
  }
160
 
161
  return $links;
162
  }
163
 
164
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  $menu_slug = 'searchandfilter-settings';
16
  $function = 'searchandfilter_settings';
17
  $icon_url = SEARCHANDFILTER_PLUGIN_URL.'/admin/icon.png';
18
+ $icon = 'data:image/svg+xml;base64,' . base64_encode( '<svg
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ viewBox="0 0 20 20"
21
+ >
22
+ <path
23
+ style="fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.31579"
24
+ d="M 9.9999995,0.9473685 C 2,5.4736845 2,5.4736845 2,5.4736845 2,14.526315 2,14.526315 2,14.526315 9.9999995,19.052631 9.9999995,19.052631 9.9999995,19.052631 18,14.526315 18,14.526315 18,14.526315 18,5.4736845 18,5.4736845 18,5.4736845 Z m 0,15.0526305 c -3.3684207,0 -5.9999989,-2.631578 -5.9999989,-5.9999995 0,-3.368421 2.6315782,-6 5.9999989,-6 3.3684205,0 6.0000005,2.631579 6.0000005,6 0,3.3684215 -2.63158,5.9999995 -6.0000005,5.9999995 z"
25
+ id="path17" />
26
+ <path
27
+ style="fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.350878"
28
+ d="m 13.62573,10.052631 c 0,1.988305 -1.637426,3.62573 -3.6257305,3.62573 -1.9883036,0 -3.6257309,-1.637425 -3.6257309,-3.62573 0,-1.988304 1.6374273,-3.625731 3.6257309,-3.625731 1.9883045,0 3.6257305,1.637427 3.6257305,3.625731 z"
29
+ id="path19" />
30
+ </svg>' );
31
+
32
+ add_menu_page($page_title, $menu_title, $capability, $menu_slug, $function, $icon);
33
 
34
  // Add submenu page with same slug as parent to ensure no duplicates
35
  $sub_menu_title = 'Settings';
48
  if (!current_user_can('manage_options')) {
49
  wp_die('You do not have sufficient permissions to access this page.');
50
  }
51
+ ?>
52
+ <div class="notice">
53
+ <h3><?php echo esc_html__( 'Big changes are coming - Search & Filter 3.0 is around the corner. ', 'search-filter' ); ?></h3>
54
+ <p><?php echo esc_html__( 'Hi! Sorry for the intrusion...', 'search-filter' ); ?></p>
55
+ <p><?php echo sprintf( esc_html__( 'But we need to tell you, %s.', 'search-filter' ), '<strong>' . esc_html__( 'a new version is coming with some big changes', 'textdomain' ) ) . '</strong>' ?></p>
56
+ <p><?php echo esc_html__( 'We\'ve been hard at work over the past few years working on the pro edition of Search & Filter, and now the time has come to share some of the features we\'ve built (with some of the lessons learned).', 'search-filter' ); ?></p>
57
+ <p><?php echo sprintf( esc_html__( 'This means %s, and %s.', 'search-filter' ), '<strong>' . esc_html( 'significant changes to how you build search forms', 'search-filter' ) . '</strong>', '<strong>' . esc_html( 'more features, filters, flexibility and integration options', 'search-filter' ) . '</strong>' ); ?></p>
58
+ <p><?php echo esc_html__( 'This is all part of a huge undertaking, bringing more features to Search & Filter free and pro, while also bringing a new interface and architecture to both editions.', 'search-filter' ); ?></p>
59
+ <p><a href="https://searchandfilter.com/search-filter-3-0-free/" target="_blank"><?php echo esc_html__( 'Read the full blog post here.', 'search-filter' ); ?></a></p>
60
+ <p><?php echo esc_html__( 'PS - we\'re looking for beta testers.', 'search-filter' ); ?></p>
61
+
62
+ </div>
63
+ <?php
64
  echo '<div class="wrap"><div id="icon-plugins" class="icon32"></div>';
65
  echo '<h2>Search &amp; Filter</h2>';
66
  echo "<h3>About</h3>";
67
  echo '<div class="of-caption">
68
+ Search &amp; Filter is a simple search and filtering plugin for Wordpress brought to you by <a href="https://codeamp.com" target="_blank">Code Amp</a> (formerly known as Designs &amp; Code).<br /><br />
69
+ It is an advancement of the WordPress search box, adding taxonomy and post type filters to really refine your searches.<br /><br />
70
  You can search by Category, Tag, Custom Taxonomy, Post Type or any combination of these easily - you can even remove the search box and simply use it as a filtering system for your posts and pages. Taxonomies and Post Types can be displayed as dropdown selects, checkboxes, radio buttons or multiselects.
71
  </div>';
72
  echo "<h3>Documentation</h3>";
73
  echo '<div class="of-caption">
74
+ Advanced documentation and examples has now moved - find it on our <a href="https://free.searchandfilter.com/" target="_blank">Search &amp; Filter Plugin Documentation</a>.<br /><br />
75
  Please find below limited documentation to get you started.
76
  </div>';
77
 
90
 
91
 
92
  echo "<h3>Arguments</h3>";
93
+ echo '<div class="of-caption">Examples for most of the arguments below can be found over on the <a href="https://free.searchandfilter.com/#examples" target="_blank">Search &amp; Filter Plugin Documentation</a>.</div>';
94
  //display table
95
  $ofVarListTable = new OF_Variable_List_Table();
96
  $ofVarListTable->prepare_items();
115
  Search &amp; Filter uses standard inputs and selects, form elements are contained in an unordered list - styling should be easy. <a href="'.SEARCHANDFILTER_PLUGIN_URL . '/style.css'.'" target="_blank">Please see CSS file for base styles used.</a>
116
  </div>';
117
 
118
+ echo "<h3>Search &amp; Filter URLs</h3>";
119
  echo '<div class="of-caption">
120
  If any fields are submitted that have blank values they do not get added to the URL, for example, if the search box is empty when submitting, you will not find a `?s=` in the URL.<br /><br />
121
 
127
  Becomes:<br />
128
  <pre><code class="of-url">www.yourdomain.com/category/uncategorized/?s=searchterm&amp;tag=shoes&amp;customtaxonomy=customvalue</code></pre><br />
129
 
 
 
 
130
  </div>';
131
 
132
  echo "<h3>Links</h3>";
133
  echo '<div class="of-caption">
134
  <ul>
135
+ <li><a href="https://free.searchandfilter.com/" target="_blank">Plugin Documentation</a></li>
 
136
  <li><a href="http://wordpress.org/plugins/search-filter" target="_blank">Plugin on WordPress.org</a></li>
137
+ <li><a href="https://github.com/rmorse/search-filter" target="_blank">Plugin on Github</a></li>
138
+ <li><a href="https://twitter.com/code_amp" target="_blank">Follow us on Twitter for updates and news</a></li>
139
  </ul>
140
  </div>';
141
 
165
  {
166
  $this_plugin = SEARCHANDFILTER_BASENAME;
167
  }
168
+
169
  if ($file == $this_plugin)
170
  {
171
  // The "page" query string value must be equal to the slug
172
  // of the Settings admin page we defined earlier, which in
173
  // this case equals "myplugin-settings".
174
+ $settings_link = esc_url( '<a href="' . get_admin_url() . 'admin.php?page=searchandfilter-settings">Settings</a>' );
175
  array_unshift($links, $settings_link);
176
  }
177
 
178
  return $links;
179
  }
180
 
181
+
182
+ function searchandfilter_plugin_admin_notice() {
183
+
184
+ global $current_user;
185
+
186
+ $user_id = $current_user->ID;
187
+
188
+ if ( ! get_user_meta( $user_id, 'search_filter_v3_coming_soon_ignore' ) ) {
189
+
190
+ ?>
191
+ <div class="notice notice-warning is-dismissible search-filter-notice-v3-coming-soon">
192
+ <p>
193
+ <strong>
194
+ <?php echo esc_html__( 'Search & Filter 3.0 is almost here - make sure you\'re ready for the update', 'search-filter' ); ?>
195
+ - <a href="<?php echo esc_url( admin_url( 'admin.php?page=searchandfilter-settings' ) ); ?>"><?php echo esc_html__( 'continue reading...', 'search-filter' ); ?></a>
196
+ </strong>
197
+ </p>
198
+ </div>
199
+ <?php
200
+ }
201
+ }
202
+
203
+ add_action( 'admin_notices', 'searchandfilter_plugin_admin_notice' );
204
+
205
+ add_action( 'wp_ajax_dismiss_search_filter_v3_coming_soon', 'search_filter_dismiss_notice_search_filter_v3' );
206
+
207
+ function search_filter_dismiss_notice_search_filter_v3() {
208
+ update_user_meta( get_current_user_id(), 'search_filter_v3_coming_soon_ignore', 1 );
209
+ }
210
+
211
+
212
+ add_action( 'admin_print_footer_scripts', 'search_filter_admin_notice_script' );
213
+
214
+ function search_filter_admin_notice_script() {
215
+ ?>
216
+ <script>
217
+ // shorthand no-conflict safe document-ready function
218
+ jQuery(function($) {
219
+ // Hook into the "notice-my-class" class we added to the notice, so
220
+ // Only listen to YOUR notices being dismissed
221
+ $( document ).on( 'click', '.search-filter-notice-v3-coming-soon .notice-dismiss', function () {
222
+ $.ajax( ajaxurl,
223
+ {
224
+ type: 'GET',
225
+ data: {
226
+ action: 'dismiss_search_filter_v3_coming_soon'
227
+ }
228
+ } );
229
+ } );
230
+ });
231
+ </script>
232
+ <?php
233
+ }
of-taxonomy-walker.php CHANGED
@@ -193,7 +193,7 @@ class Taxonomy_Walker extends Walker_Category {
193
  }
194
 
195
  $pad = str_repeat('&nbsp;', $this->multidepth * 3);
196
- $link = "<option class=\"level-".$this->multidepth."\" value='".$cat_id."'$checked />".$pad.$cat_name;
197
 
198
  if ( !empty($show_count) )
199
  $link .= '&nbsp;&nbsp;(' . intval($category->count) . ')';
193
  }
194
 
195
  $pad = str_repeat('&nbsp;', $this->multidepth * 3);
196
+ $link = "<option class=\"level-".$this->multidepth."\" value='".$cat_id."'$checked >".$pad.$cat_name;
197
 
198
  if ( !empty($show_count) )
199
  $link .= '&nbsp;&nbsp;(' . intval($category->count) . ')';
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: DesignsAndCode, codeamp
3
  Donate link:
4
  Tags: category, filter, taxonomy, search, wordpress, post type, post date
5
  Requires at least: 3.5
6
- Tested up to: 5.6
7
- Stable tag: 1.2.13
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -17,13 +17,13 @@ Search and Filtering for Custom Posts, Categories, Tags, Taxonomies, Post Dates
17
 
18
  You will find 'Search & Filter' menu in your WordPress admin panel.
19
 
20
- For basic usage, you can also have a look at the [plugin homepage](http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/) or refer to the `Search & Filter` menu in your Wordpress admin panel.
21
 
22
  == Frequently Asked Questions ==
23
 
24
  = How can I xxxxx ? =
25
 
26
- The documentation has been updated to include examples almost all configurable options with screenshots - please refer to the [Search & Filter Docs](http://docs.designsandcode.com/search-filter/).
27
 
28
  == Screenshots ==
29
 
@@ -34,6 +34,11 @@ The documentation has been updated to include examples almost all configurable o
34
 
35
  == Changelog ==
36
 
 
 
 
 
 
37
  = 1.2.13 =
38
  * Fix - a PHP warning when using Beaver Builder
39
 
@@ -111,7 +116,7 @@ The documentation has been updated to include examples almost all configurable o
111
 
112
  = 1.1.2 =
113
  * Added support for all public and custom post types (the `attachment` post type is excluded) - all post types can be user searchable or predfined and hidden from the user. This allows for users to add multiple search widgets to their site which work on specific post types independantly from eachother.
114
- * Added offical updated documentation, created and moved to [Search & Filter Docs](http://docs.designsandcode.com/search-filter/)
115
 
116
  = 1.1.1 =
117
  * Fixed: when submitting an empty search/filter, "?s=" now gets appended to the url (an empty search) to force load a results page, previously this was redirecting to the homepage which does not work for many use cases
@@ -138,7 +143,8 @@ The documentation has been updated to include examples almost all configurable o
138
 
139
  == Upgrade Notice ==
140
 
141
- * WARNING - this update includes some major changes to shortcode construction, do not upgrade until you have read the changelog and how this will affect your setup - updating should be easy.
 
142
 
143
  == Description ==
144
 
@@ -146,12 +152,12 @@ Search & Filter is a simple search and filtering plugin for WordPress - it is an
146
 
147
  You can search by Category, Tag, Custom Taxonomy, Post Type, Post Date or any combination of these easily to really refine your searches - remove the search box and use it as a filtering system for your posts and pages. Fields can be displayed as dropdowns, checkboxes, radio buttons or multi selects.
148
 
149
- **Links:** [Search & Filter Documentation](http://docs.designsandcode.com/search-filter/) | [Search & Filter Discussion](http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/)
150
 
151
- = New: Search & Filter Pro =
152
 
153
 
154
- * View live demo >> [demo 1](http://demo.designsandcode.com/sfpro-movie-reviews/) | [demo 2](http://demo.designsandcode.com/sfpro-woo-mystile/product-search/) | [video](https://searchandfilter.com/)
155
  * Search **Custom Fields**, **Post Meta**, **Authors**, Post Types, Post Dates, Taxonomies, Tags, Categories
156
  * Use **AJAX** to display results - no more page reloading!
157
  * Search **Post Meta/Custom Fields** with checkboxes, radio buttons, dropdowns, multiselects or comboboxes
3
  Donate link:
4
  Tags: category, filter, taxonomy, search, wordpress, post type, post date
5
  Requires at least: 3.5
6
+ Tested up to: 5.9
7
+ Stable tag: 1.2.14
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
17
 
18
  You will find 'Search & Filter' menu in your WordPress admin panel.
19
 
20
+ For basic usage, you can also have a look at the [documentation](https://free.searchandfilter.com/) or refer to the `Search & Filter` menu in your Wordpress admin panel.
21
 
22
  == Frequently Asked Questions ==
23
 
24
  = How can I xxxxx ? =
25
 
26
+ The documentation has been updated to include examples almost all configurable options with screenshots - please refer to the [Search & Filter Docs](https://free.searchandfilter.com/).
27
 
28
  == Screenshots ==
29
 
34
 
35
  == Changelog ==
36
 
37
+ = 1.2.14 =
38
+ * Admin notice added - Version 3 is coming soon - beta testers wanted + tons of improvements and changes coming - make sure you know what's in store.
39
+ * Update docs URLs
40
+ * Fix - an issue with an `<option>` element self closing in the multiselect field (thanks @matzeatweb)
41
+
42
  = 1.2.13 =
43
  * Fix - a PHP warning when using Beaver Builder
44
 
116
 
117
  = 1.1.2 =
118
  * Added support for all public and custom post types (the `attachment` post type is excluded) - all post types can be user searchable or predfined and hidden from the user. This allows for users to add multiple search widgets to their site which work on specific post types independantly from eachother.
119
+ * Added offical updated documentation, created and moved to [Search & Filter Docs](https://free.searchandfilter.com/)
120
 
121
  = 1.1.1 =
122
  * Fixed: when submitting an empty search/filter, "?s=" now gets appended to the url (an empty search) to force load a results page, previously this was redirecting to the homepage which does not work for many use cases
143
 
144
  == Upgrade Notice ==
145
 
146
+ = 1.1.0 =
147
+ * This update includes some major changes to shortcode construction, do not upgrade until you have read the changelog and how this will affect your setup - updating should be easy.
148
 
149
  == Description ==
150
 
152
 
153
  You can search by Category, Tag, Custom Taxonomy, Post Type, Post Date or any combination of these easily to really refine your searches - remove the search box and use it as a filtering system for your posts and pages. Fields can be displayed as dropdowns, checkboxes, radio buttons or multi selects.
154
 
155
+ **Links:** [Search & Filter Documentation](https://free.searchandfilter.com/) | [Follow us on Twitter](https://twitter.com/code_amp/)
156
 
157
+ == Get more features with Search & Filter Pro ==
158
 
159
 
160
+ * View live demo >> [demo 1](https://demo.searchandfilter.com/movies/) | [demo 2](http://demo.designsandcode.com/sfpro-woo-mystile/product-search/) | [video](https://searchandfilter.com/)
161
  * Search **Custom Fields**, **Post Meta**, **Authors**, Post Types, Post Dates, Taxonomies, Tags, Categories
162
  * Use **AJAX** to display results - no more page reloading!
163
  * Search **Post Meta/Custom Fields** with checkboxes, radio buttons, dropdowns, multiselects or comboboxes
search-filter.php CHANGED
@@ -1,11 +1,11 @@
1
  <?php
2
  /*
3
  Plugin Name: Search & Filter
4
- Plugin URI: http://www.designsandcode.com/447/wordpress-search-filter-plugin-for-taxonomies/
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.13
9
  Text Domain: searchandfilter
10
  License: GPLv2
11
  */
@@ -14,7 +14,7 @@ License: GPLv2
14
  * Set up Plugin Globals
15
  */
16
  if (!defined('SEARCHANDFILTER_VERSION_NUM'))
17
- define('SEARCHANDFILTER_VERSION_NUM', '1.2.13');
18
 
19
  if (!defined('SEARCHANDFILTER_THEME_DIR'))
20
  define('SEARCHANDFILTER_THEME_DIR', ABSPATH . 'wp-content/themes/' . get_template());
@@ -546,7 +546,7 @@ if ( ! class_exists( 'SearchAndFilter' ) )
546
 
547
  //grab search term for prefilling search input
548
  if(isset($wp_query->query['s']))
549
- {//!"�$%^&*()
550
  $this->searchterm = trim(get_search_query());
551
  }
552
 
1
  <?php
2
  /*
3
  Plugin Name: Search & Filter
4
+ Plugin URI: https://free.searchandfilter.com/
5
  Description: Search and Filtering system for Pages, Posts, Categories, Tags and Taxonomies
6
+ Author: Code Amp
7
+ Author URI: https://codeamp.com
8
+ Version: 1.2.14
9
  Text Domain: searchandfilter
10
  License: GPLv2
11
  */
14
  * Set up Plugin Globals
15
  */
16
  if (!defined('SEARCHANDFILTER_VERSION_NUM'))
17
+ define('SEARCHANDFILTER_VERSION_NUM', '1.2.14');
18
 
19
  if (!defined('SEARCHANDFILTER_THEME_DIR'))
20
  define('SEARCHANDFILTER_THEME_DIR', ABSPATH . 'wp-content/themes/' . get_template());
546
 
547
  //grab search term for prefilling search input
548
  if(isset($wp_query->query['s']))
549
+ {//!"�$%^&*()
550
  $this->searchterm = trim(get_search_query());
551
  }
552