Relevanssi – A Better Search - Version 4.0.1

Version Description

  • The plugin can now be uninstalled.
Download this release

Release Info

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

Code changes from version 4.0 to 4.0.1

Files changed (3) hide show
  1. readme.txt +7 -1
  2. relevanssi.php +1 -1
  3. uninstall.php +3 -16
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, relevance, better search
5
  Requires at least: 4.0
6
  Tested up to: 4.9.1
7
  Requires PHP: 5.6
8
- Stable tag: 4.0
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -280,6 +280,9 @@ Each document database is full of useless words. All the little words that appea
280
 
281
  == Changelog ==
282
 
 
 
 
283
  = 4.0 =
284
  * Legacy code has been removed. If you have a version older than 3.6, update first to 3.6.2.2 to guarantee smooth upgrade process.
285
  * Improved indexing: no more clicking "Continue indexing" again and again!
@@ -1129,6 +1132,9 @@ Each document database is full of useless words. All the little words that appea
1129
 
1130
  == Upgrade notice ==
1131
 
 
 
 
1132
  = 4.0 =
1133
  * Major new release. Testing at staging is recommended. Deactivate and reactivate after upgrade!
1134
 
5
  Requires at least: 4.0
6
  Tested up to: 4.9.1
7
  Requires PHP: 5.6
8
+ Stable tag: 4.0.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
280
 
281
  == Changelog ==
282
 
283
+ = 4.0.1 =
284
+ * The plugin can now be uninstalled.
285
+
286
  = 4.0 =
287
  * Legacy code has been removed. If you have a version older than 3.6, update first to 3.6.2.2 to guarantee smooth upgrade process.
288
  * Improved indexing: no more clicking "Continue indexing" again and again!
1132
 
1133
  == Upgrade notice ==
1134
 
1135
+ = 4.0.1 =
1136
+ * Fixes a bug in uninstalling the plugin.
1137
+
1138
  = 4.0 =
1139
  * Major new release. Testing at staging is recommended. Deactivate and reactivate after upgrade!
1140
 
relevanssi.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Relevanssi
4
  Plugin URI: https://www.relevanssi.com/
5
  Description: This plugin replaces WordPress search with a relevance-sorting search.
6
- Version: 4.0
7
  Author: Mikko Saari
8
  Author URI: http://www.mikkosaari.fi/
9
  Text Domain: relevanssi
3
  Plugin Name: Relevanssi
4
  Plugin URI: https://www.relevanssi.com/
5
  Description: This plugin replaces WordPress search with a relevance-sorting search.
6
+ Version: 4.0.1
7
  Author: Mikko Saari
8
  Author URI: http://www.mikkosaari.fi/
9
  Text Domain: relevanssi
uninstall.php CHANGED
@@ -4,19 +4,15 @@ if (!defined('WP_UNINSTALL_PLUGIN'))
4
  exit();
5
 
6
  global $wpdb;
7
- define('RELEVANSSI_PREMIUM', true);
8
- require_once('premium/uninstall.php');
9
 
10
  if (function_exists('is_multisite') && is_multisite()) {
11
- $blogids = $wpdb->get_col($wpdb->prepare("SELECT blog_id FROM $wpdb->blogs"));
12
  $old_blogid = $wpdb->blogid;
13
  foreach ($blogids as $blog_id) {
14
  switch_to_blog($blog_id);
15
  _relevanssi_uninstall();
16
  }
17
  switch_to_blog($old_blogid);
18
-
19
- delete_site_option('relevanssi_api_key');
20
  }
21
  else {
22
  _relevanssi_uninstall();
@@ -24,7 +20,6 @@ else {
24
 
25
  function _relevanssi_uninstall() {
26
  delete_option('relevanssi_admin_search');
27
- delete_option('relevanssi_api_key');
28
  delete_option('relevanssi_bg_col');
29
  delete_option('relevanssi_cache_seconds');
30
  delete_option('relevanssi_cat');
@@ -63,19 +58,13 @@ function _relevanssi_uninstall() {
63
  delete_option('relevanssi_index_excerpt');
64
  delete_option('relevanssi_index_fields');
65
  delete_option('relevanssi_index_limit');
66
- delete_option('relevanssi_index_pdf_parent');
67
  delete_option('relevanssi_index_post_types');
68
- delete_option('relevanssi_index_subscribers');
69
  delete_option('relevanssi_index_synonyms');
70
  delete_option('relevanssi_index_taxonomies');
71
  delete_option('relevanssi_index_taxonomies_list');
72
  delete_option('relevanssi_index_terms');
73
- delete_option('relevanssi_index_users');
74
- delete_option('relevanssi_index_user_fields');
75
  delete_option('relevanssi_indexed');
76
- delete_option('relevanssi_internal_links');
77
  delete_option('relevanssi_link_boost');
78
- delete_option('relevanssi_link_pdf_files');
79
  delete_option('relevanssi_log_queries');
80
  delete_option('relevanssi_log_queries_with_ip');
81
  delete_option('relevanssi_min_word_length');
@@ -86,7 +75,6 @@ function _relevanssi_uninstall() {
86
  delete_option('relevanssi_punctuation');
87
  delete_option('relevanssi_recency_bonus');
88
  delete_option('relevanssi_respect_exclude');
89
- delete_option('relevanssi_send_pdf_files');
90
  delete_option('relevanssi_show_matches_text');
91
  delete_option('relevanssi_show_matches');
92
  delete_option('relevanssi_synonyms');
@@ -117,7 +105,6 @@ function _relevanssi_uninstall() {
117
  delete_option('relevanssi_custom_taxonomies');
118
  delete_option('relevanssi_taxonomies_to_index');
119
 
 
120
  relevanssi_clear_database_tables();
121
- }
122
-
123
- ?>
4
  exit();
5
 
6
  global $wpdb;
 
 
7
 
8
  if (function_exists('is_multisite') && is_multisite()) {
9
+ $blogids = $wpdb->get_col("SELECT blog_id FROM $wpdb->blogs");
10
  $old_blogid = $wpdb->blogid;
11
  foreach ($blogids as $blog_id) {
12
  switch_to_blog($blog_id);
13
  _relevanssi_uninstall();
14
  }
15
  switch_to_blog($old_blogid);
 
 
16
  }
17
  else {
18
  _relevanssi_uninstall();
20
 
21
  function _relevanssi_uninstall() {
22
  delete_option('relevanssi_admin_search');
 
23
  delete_option('relevanssi_bg_col');
24
  delete_option('relevanssi_cache_seconds');
25
  delete_option('relevanssi_cat');
58
  delete_option('relevanssi_index_excerpt');
59
  delete_option('relevanssi_index_fields');
60
  delete_option('relevanssi_index_limit');
 
61
  delete_option('relevanssi_index_post_types');
 
62
  delete_option('relevanssi_index_synonyms');
63
  delete_option('relevanssi_index_taxonomies');
64
  delete_option('relevanssi_index_taxonomies_list');
65
  delete_option('relevanssi_index_terms');
 
 
66
  delete_option('relevanssi_indexed');
 
67
  delete_option('relevanssi_link_boost');
 
68
  delete_option('relevanssi_log_queries');
69
  delete_option('relevanssi_log_queries_with_ip');
70
  delete_option('relevanssi_min_word_length');
75
  delete_option('relevanssi_punctuation');
76
  delete_option('relevanssi_recency_bonus');
77
  delete_option('relevanssi_respect_exclude');
 
78
  delete_option('relevanssi_show_matches_text');
79
  delete_option('relevanssi_show_matches');
80
  delete_option('relevanssi_synonyms');
105
  delete_option('relevanssi_custom_taxonomies');
106
  delete_option('relevanssi_taxonomies_to_index');
107
 
108
+ include_once('lib/uninstall.php');
109
  relevanssi_clear_database_tables();
110
+ }