Make WordPress Core

Ticket #44793: 44793.4.diff

File 44793.4.diff, 1.8 KB (added by SergeyBiryukov, 7 years ago)
  • src/wp-includes/formatting.php

     
    19261926                        // grave accent
    19271927                        'Ǜ' => 'U',
    19281928                        'ǜ' => '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',
    19291940                );
    19301941
    19311942                // Used for locale-specific rules
     
    22642275                                '%cc%80',
    22652276                                '%cc%84',
    22662277                                '%cc%8c',
     2278                                // dialytika and tonos
     2279                                '%ce%84',
     2280                                '%ce%85',
    22672281                        ),
    22682282                        '',
    22692283                        $title
  • tests/phpunit/tests/formatting/RemoveAccents.php

     
    143143
    144144                $this->assertEquals( 'Dd', remove_accents( 'Đđ' ) );
    145145        }
     146
     147        /**
     148         * @ticket 44793
     149         */
     150        public function test_remove_greek_dialytika_and_tonos() {
     151                $this->assertEquals( 'IiIiiYuYuu', remove_accents( 'ΪϊΊίΐΫϋΎύΰ' ) );
     152        }
    146153}
  • tests/phpunit/tests/formatting/SanitizeTitleWithDashes.php

     
    140140                $this->assertEquals( 'aaaa', sanitize_title_with_dashes( 'ááa´aˊ', '', 'save' ) );
    141141        }
    142142
     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
    143150}