• Resolved wildmice

    (@wildmice)


    We have a site that marks its footnote/reference links like this :

    some text[1] and some more[2]

    It seems that this plugin does not check to see whether these are registered shortcodes. As a consequence, it messes up and changes [1] to ]1] and then highlights all the way to the end of the sentence.

    https://wordpress.org/plugins/relevanssi/

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

    (@msaari)

    Hi, this hasn’t anything to do with shortcodes. It’s indeed a rare glitch that happens if a highlighted word is next to a starting square bracket.

    Thanks for the catch; I’m releasing a new version of Relevanssi soon(ish) and it’ll include a fix for this glitch.

    Plugin Author Mikko Saari

    (@msaari)

    If you want a quick fix, edit lib/excerpts-highlights.php in the Relevanssi plugin folder. Find these lines:

    $start_emp_token = "**[";
    	$end_emp_token = "]**";

    and change them to:

    $start_emp_token = "**{[";
    	$end_emp_token = "]}**";
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘A glitch with square brackets’ is closed to new replies.