Version 1.0 ()
------------------------------------------------------------------------
+ * Fix UTF-8 encoding of $i18n_filename_* variables for building
+ permalinks (Bug #1461754, Thanks to Kim Sullivan) (garvinhicking)
+
* Fix messing up comment count when deleting a trackback from admin
panel (garvinhicking)
'y');
- if (LANG_CHARSET == 'UTF-8') {
- // URLs need to be 7bit - since this function takes care of the most common ISO-8859-1
- // characters, try to UTF8-decode the string first.
- $str = utf8_decode($str);
- }
-
if (isset($GLOBALS['i18n_filename_from'])) {
// Replace international chars not detected by every locale.
// The array of chars is defined in the language file.
$str = str_replace($GLOBALS['i18n_filename_from'], $GLOBALS['i18n_filename_to'], $str);
+
+ if (LANG_CHARSET == 'UTF-8') {
+ // URLs need to be 7bit - since this function takes care of the most common ISO-8859-1
+ // characters, try to UTF8-decode the string first.
+ $str = utf8_decode($str);
+ }
} else {
// Replace international chars not detected by every locale
+ if (LANG_CHARSET == 'UTF-8') {
+ // URLs need to be 7bit - since this function takes care of the most common ISO-8859-1
+ // characters, try to UTF8-decode the string first.
+ $str = utf8_decode($str);
+ }
+
$str = str_replace($from, $to, $str);
}