Bug in Did You Mean code?
-
I noticed that “Did You Mean” suggestions are blank on all my searches as of Relevanssi 3.5.
Here’s the relevant line in relevanssi.php:
$result = apply_filters('relevanssi_didyoumean_suggestion', "$pre<a href='$url'>$suggestion</a>$post");
Unless I’m confused, the $suggestion variable appears to be undefined. Changing it to $closest seems to fix the problem:
$result = apply_filters('relevanssi_didyoumean_suggestion', "$pre<a href='$url'>$closest</a>$post");
Thanks for a great plugin.
Joel
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Bug in Did You Mean code?’ is closed to new replies.