Ticket #44793: 44793.4.diff
File 44793.4.diff, 1.8 KB (added by , 7 years ago) |
---|
-
src/wp-includes/formatting.php
1926 1926 // grave accent 1927 1927 'Ǜ' => 'U', 1928 1928 'ǜ' => 'u', 1929 // Dialytika and tonos (Greek) 1930 'Ϊ' => 'I', 1931 'ϊ' => 'i', 1932 'Ί' => 'I', 1933 'ί' => 'i', 1934 'ΐ' => 'i', 1935 'Ϋ' => 'Y', 1936 'ϋ' => 'u', 1937 'Ύ' => 'Y', 1938 'ύ' => 'u', 1939 'ΰ' => 'u', 1929 1940 ); 1930 1941 1931 1942 // Used for locale-specific rules … … 2264 2275 '%cc%80', 2265 2276 '%cc%84', 2266 2277 '%cc%8c', 2278 // dialytika and tonos 2279 '%ce%84', 2280 '%ce%85', 2267 2281 ), 2268 2282 '', 2269 2283 $title -
tests/phpunit/tests/formatting/RemoveAccents.php
143 143 144 144 $this->assertEquals( 'Dd', remove_accents( 'Đđ' ) ); 145 145 } 146 147 /** 148 * @ticket 44793 149 */ 150 public function test_remove_greek_dialytika_and_tonos() { 151 $this->assertEquals( 'IiIiiYuYuu', remove_accents( 'ΪϊΊίΐΫϋΎύΰ' ) ); 152 } 146 153 } -
tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php
140 140 $this->assertEquals( 'aaaa', sanitize_title_with_dashes( 'ááa´aˊ', '', 'save' ) ); 141 141 } 142 142 143 /** 144 * @ticket 44793 145 */ 146 function test_replaces_dialytika_and_tonos() { 147 $this->assertEquals( 'ii', sanitize_title_with_dashes( '΅I΄I', '', 'save' ) ); 148 } 149 143 150 }