1.8.0 bug with Relevanssi Premium
-
1.8.0 of SearchWP Live Ajax Search breaks compatibility with Relevanssi Premium but the fix should be simple.
In 1.8.0 you have the following logic to determine if Relevnassi is installed within
class-relevanssi-bridge.php
:if ( is_plugin_active( 'relevanssi/relevanssi.php' ) ) {
$args['relevanssi'] = true;
}This does not capture if Relevanssi Premium is installed. Changing those lines to the following works to detect the premium version of the plugin:
if ( is_plugin_active( 'relevanssi-premium/relevanssi.php' ) ) {
$args['relevanssi'] = true;
}In 1.7.6 and earlier you detected Relevanssi by doing
function_exists( 'relevanssi_do_query' )
which catches both. You could switch back to that, or do:if ( is_plugin_active( 'relevanssi/relevanssi.php' ) ||
is_plugin_active( 'relevanssi-premium/relevanssi.php' )
) {
$args['relevanssi'] = true;
}Let me know if I can be of any additional assistance.
- The topic ‘1.8.0 bug with Relevanssi Premium’ is closed to new replies.