WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/04/2016 01:55:30 PM (4 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.