• I think the regular expression for displaying instragram hashtags is missing the pcre “unicode” modifier (/…/u), because hashtags containg german umlauts (??ü?) are displayed like this: “#Jungj ?ger”.

    I would appreciate if you could correct this issue and update the plugin.

    Thank you!

Viewing 1 replies (of 1 total)
  • Thread Starter raufaser

    (@raufaser)

    This change will solve it…

    file:
    instagram-slider-widget/includes/class-wis_instagram_slider.php

    Line 776
    $caption = preg_replace( '/\#([\p{L}\p{N}]+)/iu', '&nbsp;<a href="https://www.instagram.com/explore/tags/$1/" rel="nofollow" target="_blank">$0</a>&nbsp;', $caption);

    Line 809
    $caption = preg_replace( '/\#([\p{L}\p{N}]+)/iu', '&nbsp;<a href="https://www.instagram.com/explore/tags/$1/" rel="nofollow" target="_blank">$0</a>&nbsp;', $caption);

Viewing 1 replies (of 1 total)
  • The topic ‘Bug: Hashtags not working for german umlauts’ is closed to new replies.