WordPress.org

Make WordPress Core

Ticket #37076: 37076.2.patch

File 37076.2.patch, 1.5 KB (added by grapplerulrich, 4 years ago)
  • wp-includes/formatting.php

     
    14601460 * | U+1EF8   | Ỹ     | Y           | Latin capital letter Y with tilde                     |
    14611461 * | U+1EF9   | ỹ     | y           | Latin small letter y with tilde                       |
    14621462 *
    1463  * German (`de_DE`) and German formal (`de_DE_formal`) locales:
     1463 * German (`de_DE`), German formal (`de_DE_formal`), German (Switzerland) formal (`de_CH`),
     1464 * and German (Switzerland) informal (`de_CH_informal`) locales:
    14641465 *
    14651466 * |   Code   | Glyph | Replacement |               Description               |
    14661467 * | -------- | ----- | ----------- | --------------------------------------- |
     
    14841485 * | U+00E5   | å     | aa          | Latin small letter a with ring above    |
    14851486 *
    14861487 * @since 1.2.1
     1488 * @since 4.6.0 Locale support was added for `de_CH` and `de_CH_informal`.
    14871489 *
    14881490 * @param string $string Text that might have accent characters
    14891491 * @return string Filtered string with replaced "nice" characters.
     
    16721674                // Used for locale-specific rules
    16731675                $locale = get_locale();
    16741676
    1675                 if ( 'de_DE' == $locale || 'de_DE_formal' == $locale ) {
     1677                if ( 'de_DE' == $locale || 'de_DE_formal' == $locale || 'de_CH' == $locale || 'de_CH_informal' == $locale ) {
    16761678                        $chars[ chr(195).chr(132) ] = 'Ae';
    16771679                        $chars[ chr(195).chr(164) ] = 'ae';
    16781680                        $chars[ chr(195).chr(150) ] = 'Oe';