Formatting: In remove_accents()
, correct replacements for:
* Latin small letter n preceded by apostrophe * Latin capital letter Eng * Latin small letter Eng Props gitlost. Fixes #37564. git-svn-id: https://develop.svn.wordpress.org/trunk@38193 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
140f4914f2
commit
7f106c4f8b
@ -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',
|
||||
|
@ -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' );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user