From 7c30a4f4190e1f703327815ae264c1f683fe8955 Mon Sep 17 00:00:00 2001 From: Andrew 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: https://develop.svn.wordpress.org/trunk@19125 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 f3afcfaa00..17a1fad036 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',