[wp-trac] [WordPress Trac] #54415: remove_accent does not remove accents

WordPress Trac noreply at wordpress.org
Wed Nov 10 17:43:09 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:
 Severity:  major                        |  Resolution:
 Keywords:  reporter-feedback has-patch  |     Focuses:
-----------------------------------------+------------------------------

Comment (by malthert):

 @johnbillion added PR

 There are a variety of issues we encounter:
 - we use sv_SE locale, where we'd expect same accents to be removed as for
 da_DK locale
 - we use de_AT_formal (copy of de_DE_formal) which is not in this list
 - we use remove_accents in general for search that does not support
 special/diacritics - e.g. we sell Würth products (screws,...) and if
 somebody on our english page searches for Würth the search does not return
 anything, because get_locale returns "en_US" in this case and "ü" is not
 changed to "ue"

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54415#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list