Forums

SEO Ultimate
Deeplink Juggernaut doesn't support cyrillic symbols (3 posts)

  1. IQpromo
    Member
    Posted 3 months ago #

    Hello. Do we have a chance that Deeplink Juggernaut module of SEO Ultimate will support cyrillic symbols? I would be happy to use it on russian sites. Thanks

    http://wordpress.org/extend/plugins/seo-ultimate/

  2. Alexey
    Member
    Posted 3 months ago #

    There is a problem in word boundary detection in Unicode strings.

    in /includes/jlfunctions/str.php:207 replace this one

    $search_regex = "/\b($search)\b(?!(?:(?!<\/?(?:$exclude_tags).*?>).)*<\/(?:$exclude_tags).*?>)(?![^<>]*>)/imsU";

    to this one

    switch (mb_detect_encoding($search)) {
          case 'UTF-8':
            $search_regex = "/($search)(?!(?:(?!<\/?(?:$exclude_tags).*?>).)*<\/(?:$exclude_tags).*?>)(?![^<>]*>)/imsu";
            break;
          default:
            $search_regex = "/\b($search)\b(?!(?:(?!<\/?(?:$exclude_tags).*?>).)*<\/(?:$exclude_tags).*?>)(?![^<>]*>)/imsu";
            break;
        }
  3. steny
    Member
    Posted 3 months ago #

    Thank you so much. Works like charm now..

Reply

You must log in to post.

About this Plugin

About this Topic