Relevanssi – A Better Search - Version 4.0.10.1

Version Description

  • The privacy features caused an error notice with certain Relevanssi configurations, and the plugin required WP 4.9.6.
Download this release

Release Info

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

Code changes from version 4.0.10 to 4.0.10.1

Files changed (3) hide show
  1. lib/privacy.php +5 -1
  2. readme.txt +7 -1
  3. relevanssi.php +1 -1
lib/privacy.php CHANGED
@@ -22,10 +22,14 @@ add_filter( 'wp_privacy_personal_data_erasers', 'relevanssi_register_eraser', 10
22
  * @since 4.0.10
23
  */
24
  function relevanssi_register_privacy_policy() {
 
 
 
25
  $name = 'Relevanssi';
26
  if ( RELEVANSSI_PREMIUM ) {
27
  $name .= ' Premium';
28
  }
 
29
  if ( 'on' === get_option( 'relevanssi_log_queries' ) ) {
30
  $content = '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>';
31
  if ( 'on' === get_option( 'relevanssi_log_queries_with_ip' ) ) {
@@ -40,7 +44,7 @@ function relevanssi_register_privacy_policy() {
40
  // Translators: %d is the number of days.
41
  $content .= '<p>' . sprintf( __( 'The search logs are stored for %d days before they are automatically removed.', 'relevanssi' ), $interval ) . '</p>';
42
  } else {
43
- $content .= '<p>' . sprintf( __( 'The search logs are stored indefinitely.', 'relevanssi' ), $interval ) . '</p>';
44
  }
45
  }
46
  wp_add_privacy_policy_content( $name, $content );
22
  * @since 4.0.10
23
  */
24
  function relevanssi_register_privacy_policy() {
25
+ if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
26
+ return;
27
+ }
28
  $name = 'Relevanssi';
29
  if ( RELEVANSSI_PREMIUM ) {
30
  $name .= ' Premium';
31
  }
32
+ $content = '';
33
  if ( 'on' === get_option( 'relevanssi_log_queries' ) ) {
34
  $content = '<h2>' . __( 'What personal data we collect and why we collect it' ) . '</h2>';
35
  if ( 'on' === get_option( 'relevanssi_log_queries_with_ip' ) ) {
44
  // Translators: %d is the number of days.
45
  $content .= '<p>' . sprintf( __( 'The search logs are stored for %d days before they are automatically removed.', 'relevanssi' ), $interval ) . '</p>';
46
  } else {
47
+ $content .= '<p>' . __( 'The search logs are stored indefinitely.', 'relevanssi' ) . '</p>';
48
  }
49
  }
50
  wp_add_privacy_policy_content( $name, $content );
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, relevance, better search
5
  Requires at least: 4.0
6
  Tested up to: 5.0
7
  Requires PHP: 5.6
8
- Stable tag: 4.0.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -130,6 +130,9 @@ Each document database is full of useless words. All the little words that appea
130
 
131
  == Changelog ==
132
 
 
 
 
133
  = 4.0.10 =
134
  * Privacy: If you log search queries, Relevanssi will suggest some additional content to your privacy policy page.
135
  * Privacy: Relevanssi now supports the new Privacy Policy and Personal Data tools in WordPress 4.9.6.
@@ -170,6 +173,9 @@ Each document database is full of useless words. All the little words that appea
170
 
171
  == Upgrade notice ==
172
 
 
 
 
173
  = 4.0.10 =
174
  * Privacy update, with some bug fixes.
175
 
5
  Requires at least: 4.0
6
  Tested up to: 5.0
7
  Requires PHP: 5.6
8
+ Stable tag: 4.0.10.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
130
 
131
  == Changelog ==
132
 
133
+ = 4.0.10.1 =
134
+ * The privacy features caused an error notice with certain Relevanssi configurations, and the plugin required WP 4.9.6.
135
+
136
  = 4.0.10 =
137
  * Privacy: If you log search queries, Relevanssi will suggest some additional content to your privacy policy page.
138
  * Privacy: Relevanssi now supports the new Privacy Policy and Personal Data tools in WordPress 4.9.6.
173
 
174
  == Upgrade notice ==
175
 
176
+ = 4.0.10.1 =
177
+ * Privacy feature bug fix.
178
+
179
  = 4.0.10 =
180
  * Privacy update, with some bug fixes.
181
 
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.0.10
17
  * Author: Mikko Saari
18
  * Author URI: http://www.mikkosaari.fi/
19
  * Text Domain: relevanssi
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.0.10.1
17
  * Author: Mikko Saari
18
  * Author URI: http://www.mikkosaari.fi/
19
  * Text Domain: relevanssi