[wp-trac] [WordPress Trac] #54415: remove_accent does not remove accents
WordPress Trac
noreply at wordpress.org
Wed Nov 10 17:30:24 UTC 2021
#54415: remove_accent does not remove accents
--------------------------+-----------------------------
Reporter: malthert | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: trunk
Severity: major | Keywords: has-patch
Focuses: |
--------------------------+-----------------------------
remove_accents function removes some special characters only
conditionally.
There is a condition like:
{{{#!php
<?php
if ( in_array( $locale, array( 'de_DE', 'de_DE_formal', 'de_CH',
'de_CH_informal', 'de_AT' ), true ) ) {
}}}
Why would some accents only be removed conditionally based on the current
language?
This makes zero sense and causes unexpected results in general, but
especially when using one of the locales that should be there but is not,
e.g. de_AT_formal/informal or sv_SE (only da_DK is there even though the
characters are used in Swedish just the same)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54415>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list