From be29cd98fb99d19943af1f2a5425255c63267d97 Mon Sep 17 00:00:00 2001 From: michelvaldrighi Date: Fri, 21 May 2004 21:05:17 +0000 Subject: [PATCH] removing removeaccents, will put replacement after a release is out git-svn-id: https://develop.svn.wordpress.org/trunk@1334 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions-formatting.php | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/wp-includes/functions-formatting.php b/wp-includes/functions-formatting.php index c746587a6d..8aec11461f 100644 --- a/wp-includes/functions-formatting.php +++ b/wp-includes/functions-formatting.php @@ -78,21 +78,6 @@ function wpautop($pee, $br = 1) { return $pee; } -function removeaccents($string){ - $encoded_ligatures = array('Þ' => 'TH', 'þ' => 'th', 'Ð' => 'DH', - 'ð' => 'dh', 'ß' => 'ss', 'Œ' => 'OE', - '°' => 'oe', 'Æ' => 'AE', 'æ' => 'ae', - 'µ' => 'u'); - - foreach ($encoded_ligatures as $key => $value) { - $ligatures[utf8_decode($key)] = $value; - } - - return strtr(strtr($string, - utf8_decode('ŠŽšžŸÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑÒÓÔÕÖØÙÚÛÜÝàáâãäåçèéêëìíîïñòóôõöøùúûüýÿ'), - 'SZszYAAAAAACEEEEIIIINOOOOOOUUUUYaaaaaaceeeeiiiinoooooouuuuyy'), $ligatures); -} - function sanitize_title($title) { $title = do_action('sanitize_title', $title); @@ -100,7 +85,6 @@ function sanitize_title($title) { } function sanitize_title_with_dashes($title) { - $title = removeaccents($title); $title = strtolower($title); $title = preg_replace('/&.+?;/', '', $title); // kill entities $title = preg_replace('/[^a-z0-9 _-]/', '', $title);