Version Description
- Fix: Remove unnecessary database calls from admin pages.
- Fix: Improved Oxygen compatibility.
Download this release
Release Info
| Developer | msaari |
| Plugin | |
| Version | 4.14.2 |
| Comparing to | |
| See all releases | |
Code changes from version 4.14.0 to 4.14.2
- lib/compatibility/oxygen.php +1 -0
- lib/excerpts-highlights.php +1 -1
- lib/init.php +1 -1
- readme.txt +14 -1
- relevanssi.php +2 -2
lib/compatibility/oxygen.php
CHANGED
|
@@ -88,6 +88,7 @@ function relevanssi_oxygen_compatibility( $value, $field, $post_id ) {
|
|
| 88 |
array(
|
| 89 |
'/\[oxygen.*?\]/',
|
| 90 |
'/\[\/?ct_.*?\]/',
|
|
|
|
| 91 |
),
|
| 92 |
' ',
|
| 93 |
/**
|
| 88 |
array(
|
| 89 |
'/\[oxygen.*?\]/',
|
| 90 |
'/\[\/?ct_.*?\]/',
|
| 91 |
+
'/\[\/?oxy_.*?\]/',
|
| 92 |
),
|
| 93 |
' ',
|
| 94 |
/**
|
lib/excerpts-highlights.php
CHANGED
|
@@ -1513,7 +1513,7 @@ function relevanssi_add_excerpt( &$post, $query ) {
|
|
| 1513 |
*
|
| 1514 |
* @param boolean If true, create an excerpt. Default true.
|
| 1515 |
* @param WP_Post $post The post object.
|
| 1516 |
-
* @param string $query The search
|
| 1517 |
*/
|
| 1518 |
if ( apply_filters( 'relevanssi_excerpt_post', true, $post, $query ) ) {
|
| 1519 |
$excerpt_length = get_option( 'relevanssi_excerpt_length' );
|
| 1513 |
*
|
| 1514 |
* @param boolean If true, create an excerpt. Default true.
|
| 1515 |
* @param WP_Post $post The post object.
|
| 1516 |
+
* @param string $query The search query.
|
| 1517 |
*/
|
| 1518 |
if ( apply_filters( 'relevanssi_excerpt_post', true, $post, $query ) ) {
|
| 1519 |
$excerpt_length = get_option( 'relevanssi_excerpt_length' );
|
lib/init.php
CHANGED
|
@@ -271,7 +271,7 @@ function relevanssi_query_vars( $qv ) {
|
|
| 271 |
function relevanssi_create_database_tables( $relevanssi_db_version ) {
|
| 272 |
global $wpdb;
|
| 273 |
|
| 274 |
-
$current_db_version = get_option( 'relevanssi_db_version' );
|
| 275 |
|
| 276 |
if ( $current_db_version === $relevanssi_db_version ) {
|
| 277 |
return;
|
| 271 |
function relevanssi_create_database_tables( $relevanssi_db_version ) {
|
| 272 |
global $wpdb;
|
| 273 |
|
| 274 |
+
$current_db_version = intval( get_option( 'relevanssi_db_version' ) );
|
| 275 |
|
| 276 |
if ( $current_db_version === $relevanssi_db_version ) {
|
| 277 |
return;
|
readme.txt
CHANGED
|
@@ -5,7 +5,7 @@ Tags: search, relevance, better search, product search, woocommerce search
|
|
| 5 |
Requires at least: 4.9
|
| 6 |
Tested up to: 5.8.1
|
| 7 |
Requires PHP: 7.0
|
| 8 |
-
Stable tag: 4.14.
|
| 9 |
License: GPLv2 or later
|
| 10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
| 11 |
|
|
@@ -131,6 +131,13 @@ 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.14.0 =
|
| 135 |
* New feature: New filter hook `relevanssi_render_blocks` controls whether Relevanssi renders blocks in a post or not. If you are having problems updating long posts with lots of blocks, having this filter hook return `false` for the post in question will likely help, as rendering the blocks in a long post can take huge amounts of memory.
|
| 136 |
* New feature: The user searches page has been improved a lot.
|
|
@@ -242,6 +249,12 @@ Each document database is full of useless words. All the little words that appea
|
|
| 242 |
* Minor fix: In some cases, having less than or greater than symbols in PDF content would block that PDF content from being indexed.
|
| 243 |
|
| 244 |
== Upgrade notice ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
= 4.14.0 =
|
| 246 |
* User searches page update, bug fixes and improvements.
|
| 247 |
|
| 5 |
Requires at least: 4.9
|
| 6 |
Tested up to: 5.8.1
|
| 7 |
Requires PHP: 7.0
|
| 8 |
+
Stable tag: 4.14.2
|
| 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.14.2 =
|
| 135 |
+
* Fix: Remove unnecessary database calls from admin pages.
|
| 136 |
+
* Fix: Improved Oxygen compatibility.
|
| 137 |
+
|
| 138 |
+
= 4.14.1 =
|
| 139 |
+
* Adds a missing file.
|
| 140 |
+
|
| 141 |
= 4.14.0 =
|
| 142 |
* New feature: New filter hook `relevanssi_render_blocks` controls whether Relevanssi renders blocks in a post or not. If you are having problems updating long posts with lots of blocks, having this filter hook return `false` for the post in question will likely help, as rendering the blocks in a long post can take huge amounts of memory.
|
| 143 |
* New feature: The user searches page has been improved a lot.
|
| 249 |
* Minor fix: In some cases, having less than or greater than symbols in PDF content would block that PDF content from being indexed.
|
| 250 |
|
| 251 |
== Upgrade notice ==
|
| 252 |
+
= 4.14.2 =
|
| 253 |
+
* Removes database calls on admin pages.
|
| 254 |
+
|
| 255 |
+
= 4.14.1 =
|
| 256 |
+
* Adds a missing file.
|
| 257 |
+
|
| 258 |
= 4.14.0 =
|
| 259 |
* User searches page update, bug fixes and improvements.
|
| 260 |
|
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.14.
|
| 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.14.
|
| 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.14.2
|
| 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.14.2';
|
| 71 |
|
| 72 |
require_once 'lib/admin-ajax.php';
|
| 73 |
require_once 'lib/common.php';
|
