[wp-trac] [WordPress Trac] #54415: remove_accent does not remove accents
WordPress Trac
noreply at wordpress.org
Mon Feb 28 15:40:29 UTC 2022
#54415: remove_accent does not remove accents
--------------------------+------------------------------
Reporter: malthert | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"52809" 52809]:
{{{
#!CommitTicketReference repository="" revision="52809"
I18N: Add a `$locale` parameter for `remove_accents()`.
This highlights the fact that `remove_accents()` is locale-aware and makes
it easier to utilize the function with different locales without having to
use `switch_to_locale()` or the `locale` filter.
Additionally, this commit relaxes the check for character replacements in
German locales to include formal and informal variants of any `de_*`
locale, even if WordPress does not have a native translation for some of
them yet.
Props malthert, johnbillion, knutsp, ocean90, SergeyBiryukov.
Fixes #54415.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54415#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list