From 27a756db3b544c4b9d7dde421ff819f60f863385 Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 4 Oct 2006 07:51:01 +0000 Subject: [PATCH] Strip out British pound sterling (pound) symbol from post slug. fixes #2735 git-svn-id: http://svn.automattic.com/wordpress/branches/2.0@4319 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions-formatting.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index 52a7839a49..3b7b843f37 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -252,8 +252,10 @@ function remove_accents($string) { chr(197).chr(188) => 'z', chr(197).chr(189) => 'Z', chr(197).chr(190) => 'z', chr(197).chr(191) => 's', // Euro Sign - chr(226).chr(130).chr(172) => 'E'); - + chr(226).chr(130).chr(172) => 'E', + // GBP (Pound) Sign + chr(194).chr(163) => ''); + $string = strtr($string, $chars); } else { // Assume ISO-8859-1 if not UTF-8