Changeset 61855
- Timestamp:
- 03/06/2026 06:01:47 PM (33 hours ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
src/wp-includes/formatting.php (modified) (3 diffs)
-
tests/phpunit/tests/formatting/removeAccents.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/formatting.php
r61590 r61855 1567 1567 * | U+00DC | Ü | Ue | Latin capital letter U with diaeresis | 1568 1568 * | U+00FC | ü | ue | Latin small letter u with diaeresis | 1569 * | U+1E9E | ẞ | SS | Latin capital letter sharp s | 1569 1570 * | U+00DF | ß | ss | Latin small letter sharp s | 1570 1571 * … … 1600 1601 * @since 6.0.0 Added the `$locale` parameter. 1601 1602 * @since 6.1.0 Added Unicode NFC encoding normalization support. 1603 * @since 7.0.0 Added capital Eszett (U+1E9E) support for German locales. 1602 1604 * 1603 1605 * @param string $text Text that might have accent characters. … … 1973 1975 $chars['Ü'] = 'Ue'; 1974 1976 $chars['ü'] = 'ue'; 1977 $chars['ẞ'] = 'SS'; 1975 1978 $chars['ß'] = 'ss'; 1976 1979 } elseif ( 'da_DK' === $locale ) { -
trunk/tests/phpunit/tests/formatting/removeAccents.php
r53754 r61855 110 110 111 111 /** 112 * @ticket 64821 113 */ 114 public function test_remove_accents_germanic_capital_eszett() { 115 // U+1E9E LATIN CAPITAL LETTER SHARP S, standardized in German orthography in 2017 (DIN 5008). 116 $this->assertSame( 'SS', remove_accents( 'ẞ', 'de_DE' ) ); 117 // Verify it works in context alongside the lowercase variant. 118 $this->assertSame( 'SSstrasse', remove_accents( 'ẞstraße', 'de_DE' ) ); 119 } 120 121 /** 112 122 * @ticket 23907 113 123 */
Note: See TracChangeset
for help on using the changeset viewer.