From b2560a3025a2f57434a50fff61593bf25c314b9b Mon Sep 17 00:00:00 2001 From: nacin Date: Wed, 2 Nov 2011 23:08:05 +0000 Subject: [PATCH] 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 --- wp-includes/formatting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php index f3afcfaa0..17a1fad03 100644 --- a/wp-includes/formatting.php +++ b/wp-includes/formatting.php @@ -564,6 +564,7 @@ function remove_accents($string) { if (seems_utf8($string)) { $chars = array( // 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(130) => 'A', chr(195).chr(131) => '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(187) => 'u', chr(195).chr(188) => 'u', 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 chr(196).chr(128) => 'A', chr(196).chr(129) => 'a', chr(196).chr(130) => 'A', chr(196).chr(131) => 'a',