Make WordPress Core

Changeset 23361


Ignore:
Timestamp:
01/31/2013 01:55:09 AM (11 years ago)
Author:
SergeyBiryukov
Message:

Use digraphs for German umlauts in remove_accents(). props SergeyBiryukov, ocean90. fixes #3782.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/formatting.php

    r23327 r23361  
    785785        chr(199).chr(155) => 'U', chr(199).chr(156) => 'u',
    786786        );
     787
     788        // Used for locale-specific rules
     789        $locale = get_locale();
     790
     791        if ( 'de_DE' == $locale ) {
     792            $chars[ chr(195).chr(132) ] = 'Ae';
     793            $chars[ chr(195).chr(164) ] = 'ae';
     794            $chars[ chr(195).chr(150) ] = 'Oe';
     795            $chars[ chr(195).chr(182) ] = 'oe';
     796            $chars[ chr(195).chr(156) ] = 'Ue';
     797            $chars[ chr(195).chr(188) ] = 'ue';
     798            $chars[ chr(195).chr(159) ] = 'ss';
     799        }
    787800
    788801        $string = strtr($string, $chars);
Note: See TracChangeset for help on using the changeset viewer.