Relevanssi – A Better Search - Version 3.6.2.2

Version Description

  • A bug in post sorting broke string sorting (mostly post title sorting).
Download this release

Release Info

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

Code changes from version 3.6.2.1 to 3.6.2.2

Files changed (3) hide show
  1. lib/common.php +2 -2
  2. readme.txt +7 -1
  3. relevanssi.php +1 -1
lib/common.php CHANGED
@@ -211,7 +211,7 @@ function relevanssi_object_sort(&$data, $orderby) {
211
  }
212
 
213
  if ('asc' == $dirs[$level]) {
214
- if ($val == 1) {
215
  $tmp = $data[$j];
216
  $data[$j] = $data[$j + 1];
217
  $data[$j + 1] = $tmp;
@@ -219,7 +219,7 @@ function relevanssi_object_sort(&$data, $orderby) {
219
  }
220
  }
221
  else {
222
- if ($val == -1) {
223
  $tmp = $data[$j];
224
  $data[$j] = $data[$j + 1];
225
  $data[$j + 1] = $tmp;
211
  }
212
 
213
  if ('asc' == $dirs[$level]) {
214
+ if ($val > 0) {
215
  $tmp = $data[$j];
216
  $data[$j] = $data[$j + 1];
217
  $data[$j + 1] = $tmp;
219
  }
220
  }
221
  else {
222
+ if ($val < 1) {
223
  $tmp = $data[$j];
224
  $data[$j] = $data[$j + 1];
225
  $data[$j + 1] = $tmp;
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: search, relevance, better search
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
  Requires PHP: 5.6
8
- Stable tag: 3.6.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -269,6 +269,9 @@ Each document database is full of useless words. All the little words that appea
269
 
270
  == Changelog ==
271
 
 
 
 
272
  = 3.6.2.1 =
273
  * A bug was left in the post ordering code. That bug is now squashed.
274
 
@@ -1091,6 +1094,9 @@ Each document database is full of useless words. All the little words that appea
1091
 
1092
  == Upgrade notice ==
1093
 
 
 
 
1094
  = 3.6.2.1 =
1095
  * Fixes a bug in the post sorting algorithm.
1096
 
5
  Requires at least: 4.0
6
  Tested up to: 4.9
7
  Requires PHP: 5.6
8
+ Stable tag: 3.6.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
269
 
270
  == Changelog ==
271
 
272
+ = 3.6.2.2 =
273
+ * A bug in post sorting broke string sorting (mostly post title sorting).
274
+
275
  = 3.6.2.1 =
276
  * A bug was left in the post ordering code. That bug is now squashed.
277
 
1094
 
1095
  == Upgrade notice ==
1096
 
1097
+ = 3.6.2.2 =
1098
+ * Fixes a bug in string sorting (for example post title ordering).
1099
+
1100
  = 3.6.2.1 =
1101
  * Fixes a bug in the post sorting algorithm.
1102
 
relevanssi.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Relevanssi
4
  Plugin URI: http://www.relevanssi.com/
5
  Description: This plugin replaces WordPress search with a relevance-sorting search.
6
- Version: 3.6.2.1
7
  Author: Mikko Saari
8
  Author URI: http://www.mikkosaari.fi/
9
  */
3
  Plugin Name: Relevanssi
4
  Plugin URI: http://www.relevanssi.com/
5
  Description: This plugin replaces WordPress search with a relevance-sorting search.
6
+ Version: 3.6.2.2
7
  Author: Mikko Saari
8
  Author URI: http://www.mikkosaari.fi/
9
  */