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
This commit is contained in:
michelvaldrighi 2004-05-21 21:05:17 +00:00
parent 49bb2124c1
commit be29cd98fb
1 changed files with 0 additions and 16 deletions

View File

@ -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);