Make WordPress Core


Ignore:
Timestamp:
03/06/2026 06:01:47 PM (3 months ago)
Author:
dmsnell
Message:

Formatting: Transform “ẞ” for German locales in remove_accents().

The capital Eszett was standardized in German orthography in 2017, DIN 5008, but WordPress has only been transforming the lowercase version.

This patch adds the uppercase variant to the list and transforms it to “SS” for more-appriate slug and permalink generation.

Developed in: https://github.com/WordPress/wordpress-develop/pull/11188
Discussed in: https://core.trac.wordpress.org/ticket/64821

Props apermo, dmsnell.
Fixes #64821.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/formatting/removeAccents.php

    r53754 r61855  
    110110
    111111    /**
     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    /**
    112122     * @ticket 23907
    113123     */
Note: See TracChangeset for help on using the changeset viewer.