Ticket #24661: normalize_before_removing_accents.patch
File normalize_before_removing_accents.patch, 486 bytes (added by , 3 years ago) |
---|
-
wp-includes/formatting.php
old new 1588 1588 } 1589 1589 1590 1590 if ( seems_utf8( $string ) ) { 1591 if ( function_exists( 'normalizer_normalize' ) ) { 1592 if ( ! normalizer_is_normalized( $string, Normalizer::FORM_C ) ) { 1593 $string = normalizer_normalize( $string, Normalizer::FORM_C ); 1594 } 1595 } 1591 1596 $chars = array( 1592 1597 // Decompositions for Latin-1 Supplement. 1593 1598 'ª' => 'a',