Relevanssi – A Better Search - Version 4.13.3.1

Version Description

  • Minor fix: The Bricks compatibility was broken. This version fixes it.
Download this release

Release Info

Developer msaari
Plugin Icon 128x128 Relevanssi – A Better Search
Version 4.13.3.1
Comparing to
See all releases

Code changes from version 4.13.3 to 4.13.3.1

Files changed (3) hide show
  1. lib/compatibility/bricks.php +13 -5
  2. readme.txt +8 -2
  3. relevanssi.php +2 -2
lib/compatibility/bricks.php CHANGED
@@ -10,10 +10,18 @@
10
  * @see https://www.relevanssi.com/
11
  */
12
 
13
- add_filter(
14
- 'bricks/posts/query_vars',
15
- function( $query_vars ) {
 
 
 
 
 
 
 
 
16
  $query_vars['relevanssi'] = true;
17
- return $query_vars;
18
  }
19
- );
 
10
  * @see https://www.relevanssi.com/
11
  */
12
 
13
+ add_filter( 'bricks/posts/query_vars', 'relevanssi_bricks_enable', 10 );
14
+
15
+ /**
16
+ * Undocumented function
17
+ *
18
+ * @param array $query_vars The query variables.
19
+ *
20
+ * @return array The query variables with the Relevanssi toggle enabled.
21
+ */
22
+ function relevanssi_bricks_enable( $query_vars ) {
23
+ if ( isset( $query_vars['s'] ) ) {
24
  $query_vars['relevanssi'] = true;
 
25
  }
26
+ return $query_vars;
27
+ }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: msaari
3
  Donate link: https://www.relevanssi.com/buy-premium/
4
  Tags: search, relevance, better search, product search, woocommerce search
5
  Requires at least: 4.9
6
- Tested up to: 5.7.2
7
  Requires PHP: 7.0
8
- Stable tag: 4.13.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -131,6 +131,9 @@ Each document database is full of useless words. All the little words that appea
131
  * John Calahan for extensive 4.0 beta testing.
132
 
133
  == Changelog ==
 
 
 
134
  = 4.13.3 =
135
  * New feature: You can now add a post type dropdown to search forms with the [searchform] shortcode with the parameter 'dropdown' set to 'post_type'.
136
  * New feature: Adds compatibility for Product GTIN (EAN, UPC, ISBN) for WooCommerce plugin.
@@ -245,6 +248,9 @@ Each document database is full of useless words. All the little words that appea
245
  * Minor fix: Improved Oxygen Builder support makes sure `ct_builder_shortcodes` custom field is always indexed.
246
 
247
  == Upgrade notice ==
 
 
 
248
  = 4.13.3 =
249
  * Bug fixes and small improvements.
250
 
3
  Donate link: https://www.relevanssi.com/buy-premium/
4
  Tags: search, relevance, better search, product search, woocommerce search
5
  Requires at least: 4.9
6
+ Tested up to: 5.8
7
  Requires PHP: 7.0
8
+ Stable tag: 4.13.3.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
131
  * John Calahan for extensive 4.0 beta testing.
132
 
133
  == Changelog ==
134
+ = 4.13.3.1 =
135
+ * Minor fix: The Bricks compatibility was broken. This version fixes it.
136
+
137
  = 4.13.3 =
138
  * New feature: You can now add a post type dropdown to search forms with the [searchform] shortcode with the parameter 'dropdown' set to 'post_type'.
139
  * New feature: Adds compatibility for Product GTIN (EAN, UPC, ISBN) for WooCommerce plugin.
248
  * Minor fix: Improved Oxygen Builder support makes sure `ct_builder_shortcodes` custom field is always indexed.
249
 
250
  == Upgrade notice ==
251
+ = 4.13.3.1 =
252
+ * Fixes the Bricks compatibility.
253
+
254
  = 4.13.3 =
255
  * Bug fixes and small improvements.
256
 
relevanssi.php CHANGED
@@ -13,7 +13,7 @@
13
  * Plugin Name: Relevanssi
14
  * Plugin URI: https://www.relevanssi.com/
15
  * Description: This plugin replaces WordPress search with a relevance-sorting search.
16
- * Version: 4.13.3
17
  * Author: Mikko Saari
18
  * Author URI: http://www.mikkosaari.fi/
19
  * Text Domain: relevanssi
@@ -67,7 +67,7 @@ $relevanssi_variables['database_version'] = 6;
67
  $relevanssi_variables['file'] = __FILE__;
68
  $relevanssi_variables['plugin_dir'] = plugin_dir_path( __FILE__ );
69
  $relevanssi_variables['plugin_basename'] = plugin_basename( __FILE__ );
70
- $relevanssi_variables['plugin_version'] = '4.13.3';
71
 
72
  require_once 'lib/admin-ajax.php';
73
  require_once 'lib/common.php';
13
  * Plugin Name: Relevanssi
14
  * Plugin URI: https://www.relevanssi.com/
15
  * Description: This plugin replaces WordPress search with a relevance-sorting search.
16
+ * Version: 4.13.3.1
17
  * Author: Mikko Saari
18
  * Author URI: http://www.mikkosaari.fi/
19
  * Text Domain: relevanssi
67
  $relevanssi_variables['file'] = __FILE__;
68
  $relevanssi_variables['plugin_dir'] = plugin_dir_path( __FILE__ );
69
  $relevanssi_variables['plugin_basename'] = plugin_basename( __FILE__ );
70
+ $relevanssi_variables['plugin_version'] = '4.13.3.1';
71
 
72
  require_once 'lib/admin-ajax.php';
73
  require_once 'lib/common.php';