[wp-trac] [WordPress Trac] #54088: Uploading media containing Norwegian letter å does not automatically readjust it to become aa.

WordPress Trac noreply at wordpress.org
Sat May 7 10:18:55 UTC 2022


#54088: Uploading media containing Norwegian letter å does not automatically
readjust it to become aa.
-------------------------------------------------+-------------------------
 Reporter:  paaljoachim                          |       Owner:  nielslange
     Type:  defect (bug)                         |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  dev-feedback has-patch has-unit-     |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------

Comment (by nielslange):

 @paaljoachim and @costdev As asked by you above, I've only addressed the
 problem with the Norwegian letter `å`. I noticed, that `å` can appear with
 two different Unicode character code points.

 {{{#!php
 <?php

 // int(97)
 var_dump(mb_ord('å'));

 // int(229)
 var_dump(mb_ord('å'));

 }}}

 I've added the character, that hasn't been converted, to `remove_accents`
 in `/wp-includes/formatting.php` and updated the unit test
 `test_remove_accents_latin1_supplement` in
 `/tests/phpunit/tests/formatting/removeAccents.php`.

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


More information about the wp-trac mailing list