Plugin Directory

Changeset 3375928


Ignore:
Timestamp:
10/09/2025 05:37:45 PM (6 months ago)
Author:
cmsjunkie
Message:

Multiple bug fixes
Compatibility with DIVI themes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-businessdirectory/trunk/includes/mvc/language/Stemmer/Porteren.php

    r2196655 r3375928  
    425425        $c = self::$_regex_consonant;
    426426
    427         return preg_match("#$c{2}$#", $str, $matches) && $matches[0]{0} == $matches[0]{1};
     427        return preg_match("#{$c}{2}$#", $str, $matches) && $matches[0][0] == $matches[0][1];
    428428    }
    429429
     
    442442        $v = self::$_regex_vowel;
    443443
    444         $result = preg_match("#($c$v$c)$#", $str, $matches)
    445             && strlen($matches[1]) == 3
    446             && $matches[1]{2} != 'w'
    447             && $matches[1]{2} != 'x'
    448             && $matches[1]{2} != 'y';
     444    $result = preg_match("#($c$v$c)$#", $str, $matches)
     445        && strlen($matches[1]) == 3
     446        && $matches[1][2] != 'w'
     447        && $matches[1][2] != 'x'
     448        && $matches[1][2] != 'y';
    449449
    450450        return $result;
Note: See TracChangeset for help on using the changeset viewer.