summaryrefslogtreecommitdiffstats
path: root/wp-includes/formatting.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-27 14:47:30 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2006-07-27 14:47:30 +0000
commit503214a304ab0ce46df6feae4c052abcd941af98 (patch)
tree60d8047e0ac5b79aa7b9cdbbf4168c4a51bc050f /wp-includes/formatting.php
parent9869401a21a143eb2369beb24d8446d855c41464 (diff)
downloadwordpress-mu-503214a304ab0ce46df6feae4c052abcd941af98.tar.gz
wordpress-mu-503214a304ab0ce46df6feae4c052abcd941af98.tar.xz
wordpress-mu-503214a304ab0ce46df6feae4c052abcd941af98.zip
WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@712 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/formatting.php')
-rw-r--r--wp-includes/formatting.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
index 7735d58..f027869 100644
--- a/wp-includes/formatting.php
+++ b/wp-includes/formatting.php
@@ -149,6 +149,9 @@ function utf8_uri_encode( $utf8_string ) {
}
function remove_accents($string) {
+ if ( !preg_match('/[\x80-\xff]/', $string) )
+ return $string;
+
if (seems_utf8($string)) {
$chars = array(
// Decompositions for Latin-1 Supplement