Support » Plugin: Social Slider Widget » Bug: Hashtags not working for german umlauts

  • 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)
  • 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.