Make WordPress Core

Ticket #3782: 3782.3.patch

File 3782.3.patch, 733 bytes (added by SergeyBiryukov, 10 years ago)
  • wp-includes/formatting.php

     
    785785                chr(199).chr(155) => 'U', chr(199).chr(156) => 'u',
    786786                );
    787787
     788                // Used for locale-specific rules
     789                $locale = get_locale();
     790
     791                if ( 'de_DE' == $locale ) {
     792                        $chars = array_merge( $chars, array(
     793                                chr(195).chr(132) => 'Ae', chr(195).chr(164) => 'ae',
     794                                chr(195).chr(150) => 'Oe', chr(195).chr(182) => 'oe',
     795                                chr(195).chr(156) => 'Ue', chr(195).chr(188) => 'ue',
     796                                chr(195).chr(159) => 'ss',
     797                        ) );
     798                }
     799
    788800                $string = strtr($string, $chars);
    789801        } else {
    790802                // Assume ISO-8859-1 if not UTF-8