Make WordPress Core

Changeset 38193


Ignore:
Timestamp:
08/04/2016 01:55:30 PM (8 years ago)
Author:
SergeyBiryukov
Message:

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.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/formatting.php

    r38121 r38193  
    12801280 * | U+0147  | Ň     | N           | Latin capital letter N with caron                 |
    12811281 * | U+0148  | ň     | n           | Latin small letter n with caron                   |
    1282  * | U+0149  | ʼn     | N           | Latin small letter n preceded by apostrophe       |
    1283  * | U+014A  | Ŋ     | n           | Latin capital letter Eng                          |
    1284  * | U+014B  | ŋ     | N           | Latin small letter Eng                            |
     1282 * | U+0149  | ʼn     | n           | Latin small letter n preceded by apostrophe       |
     1283 * | U+014A  | Ŋ     | N           | Latin capital letter Eng                          |
     1284 * | U+014B  | ŋ     | n           | Latin small letter Eng                            |
    12851285 * | U+014C  | Ō     | O           | Latin capital letter O with macron                |
    12861286 * | U+014D  | ō     | o           | Latin small letter o with macron                  |
     
    15731573        chr(197).chr(132) => 'n', chr(197).chr(133) => 'N',
    15741574        chr(197).chr(134) => 'n', chr(197).chr(135) => 'N',
    1575         chr(197).chr(136) => 'n', chr(197).chr(137) => 'N',
    1576         chr(197).chr(138) => 'n', chr(197).chr(139) => 'N',
     1575        chr(197).chr(136) => 'n', chr(197).chr(137) => 'n',
     1576        chr(197).chr(138) => 'N', chr(197).chr(139) => 'n',
    15771577        chr(197).chr(140) => 'O', chr(197).chr(141) => 'o',
    15781578        chr(197).chr(142) => 'O', chr(197).chr(143) => 'o',
  • trunk/tests/phpunit/tests/formatting/RemoveAccents.php

    r37853 r38193  
    2121    public function test_remove_accents_latin_extended_a() {
    2222        $input = 'ĀāĂ㥹ĆćĈĉĊċČčĎďĐđĒēĔĕĖėĘęĚěĜĝĞğĠġĢģĤĥĦħĨĩĪīĬĭĮįİıIJijĴĵĶķĸĹĺĻļĽľĿŀŁłŃńŅņŇňʼnŊŋŌōŎŏŐőŒœŔŕŖŗŘřŚśŜŝŞşŠšŢţŤťŦŧŨũŪūŬŭŮůŰűŲųŴŵŶŷŸŹźŻżŽžſ';
    23         $output = 'AaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIiIJijJjKkkLlLlLlLlLlNnNnNnNnNOoOoOoOEoeRrRrRrSsSsSsSsTtTtTtUuUuUuUuUuUuWwYyYZzZzZzs';
     23        $output = 'AaAaAaCcCcCcCcDdDdEeEeEeEeEeGgGgGgGgHhHhIiIiIiIiIiIJijJjKkkLlLlLlLlLlNnNnNnnNnOoOoOoOEoeRrRrRrSsSsSsSsTtTtTtUuUuUuUuUuUuWwYyYZzZzZzs';
    2424
    2525        $this->assertEquals( $output, remove_accents( $input ), 'remove_accents replaces Latin Extended A' );
Note: See TracChangeset for help on using the changeset viewer.