diff --git a/src/wp-includes/formatting.php b/src/wp-includes/formatting.php index 831819954d..37298ececf 100644 --- a/src/wp-includes/formatting.php +++ b/src/wp-includes/formatting.php @@ -1279,9 +1279,9 @@ function utf8_uri_encode( $utf8_string, $length = 0 ) { * | U+0146 | ņ | n | Latin small letter n with cedilla | * | U+0147 | Ň | N | Latin capital letter N with caron | * | U+0148 | ň | n | Latin small letter n with caron | - * | U+0149 | ʼn | N | Latin small letter n preceded by apostrophe | - * | U+014A | Ŋ | n | Latin capital letter Eng | - * | U+014B | ŋ | N | Latin small letter Eng | + * | U+0149 | ʼn | n | Latin small letter n preceded by apostrophe | + * | U+014A | Ŋ | N | Latin capital letter Eng | + * | U+014B | ŋ | n | Latin small letter Eng | * | U+014C | Ō | O | Latin capital letter O with macron | * | U+014D | ō | o | Latin small letter o with macron | * | U+014E | Ŏ | O | Latin capital letter O with breve | @@ -1572,8 +1572,8 @@ function remove_accents( $string ) { chr(197).chr(130) => 'l', chr(197).chr(131) => 'N', chr(197).chr(132) => 'n', chr(197).chr(133) => 'N', chr(197).chr(134) => 'n', chr(197).chr(135) => 'N', - chr(197).chr(136) => 'n', chr(197).chr(137) => 'N', - chr(197).chr(138) => 'n', chr(197).chr(139) => 'N', + chr(197).chr(136) => 'n', chr(197).chr(137) => 'n', + chr(197).chr(138) => 'N', chr(197).chr(139) => 'n', chr(197).chr(140) => 'O', chr(197).chr(141) => 'o', chr(197).chr(142) => 'O', chr(197).chr(143) => 'o', chr(197).chr(144) => 'O', chr(197).chr(145) => 'o', diff --git a/tests/phpunit/tests/formatting/RemoveAccents.php b/tests/phpunit/tests/formatting/RemoveAccents.php index 7176d71eb3..65eebb5c4d 100644 --- a/tests/phpunit/tests/formatting/RemoveAccents.php +++ b/tests/phpunit/tests/formatting/RemoveAccents.php @@ -20,7 +20,7 @@ class Tests_Formatting_RemoveAccents extends WP_UnitTestCase { public function test_remove_accents_latin_extended_a() { $input = 'ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſ'; - $output = 'AaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIiIJijJjKkkLlLlLlLlLlNnNnNnNnNOoOoOoOEoeRrRrRrSsSsSsSsTtTtTtUuUuUuUuUuUuWwYyYZzZzZzs'; + $output = 'AaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIiIJijJjKkkLlLlLlLlLlNnNnNnnNnOoOoOoOEoeRrRrRrSsSsSsSsTtTtTtUuUuUuUuUuUuWwYyYZzZzZzs'; $this->assertEquals( $output, remove_accents( $input ), 'remove_accents replaces Latin Extended A' ); }