Ticket #3782: 3782.2.patch
File 3782.2.patch, 906 bytes (added by , 11 years ago) |
---|
-
wp-includes/formatting.php
608 608 if ( !preg_match('/[\x80-\xff]/', $string) ) 609 609 return $string; 610 610 611 // Used for locale-specific rules 612 $locale = get_locale(); 613 611 614 if (seems_utf8($string)) { 612 615 $chars = array( 613 616 // Decompositions for Latin-1 Supplement … … 785 788 chr(199).chr(155) => 'U', chr(199).chr(156) => 'u', 786 789 ); 787 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 788 800 $string = strtr($string, $chars); 789 801 } else { 790 802 // Assume ISO-8859-1 if not UTF-8