• Resolved jrisberg

    (@jrisberg)


    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

    https://www.ads-software.com/plugins/relevanssi/

Viewing 1 replies (of 1 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Yeah, that’s an honest bug, I copied that line from Premium and didn’t notice the different variable. I’ll get a fixed version out soon.

Viewing 1 replies (of 1 total)
  • The topic ‘Bug in Did You Mean code?’ is closed to new replies.