Add a few characters to remove_accents(). props SergeyBiryukov. props ampt for [UT471]. fixes #9591.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19125 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-11-02 23:08:05 +00:00
parent 13fc52f98f
commit b2560a3025
1 changed files with 2 additions and 1 deletions

View File

@ -564,6 +564,7 @@ function remove_accents($string) {
if (seems_utf8($string)) { if (seems_utf8($string)) {
$chars = array( $chars = array(
// Decompositions for Latin-1 Supplement // Decompositions for Latin-1 Supplement
chr(194).chr(170) => 'a', chr(194).chr(186) => 'o',
chr(195).chr(128) => 'A', chr(195).chr(129) => 'A', chr(195).chr(128) => 'A', chr(195).chr(129) => 'A',
chr(195).chr(130) => 'A', chr(195).chr(131) => 'A', chr(195).chr(130) => 'A', chr(195).chr(131) => 'A',
chr(195).chr(132) => 'A', chr(195).chr(133) => 'A', chr(195).chr(132) => 'A', chr(195).chr(133) => 'A',
@ -594,7 +595,7 @@ function remove_accents($string) {
chr(195).chr(185) => 'u', chr(195).chr(186) => 'u', chr(195).chr(185) => 'u', chr(195).chr(186) => 'u',
chr(195).chr(187) => 'u', chr(195).chr(188) => 'u', chr(195).chr(187) => 'u', chr(195).chr(188) => 'u',
chr(195).chr(189) => 'y', chr(195).chr(190) => 'th', chr(195).chr(189) => 'y', chr(195).chr(190) => 'th',
chr(195).chr(191) => 'y', chr(195).chr(191) => 'y', chr(195).chr(152) => 'O',
// Decompositions for Latin Extended-A // Decompositions for Latin Extended-A
chr(196).chr(128) => 'A', chr(196).chr(129) => 'a', chr(196).chr(128) => 'A', chr(196).chr(129) => 'a',
chr(196).chr(130) => 'A', chr(196).chr(131) => 'a', chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',