From 0ab9b235c51655721fb11d4f71c279e9a25894a2 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Sat, 24 Jan 2004 23:22:31 +0000 Subject: [PATCH] Fix for foreign language comments. git-svn-id: https://develop.svn.wordpress.org/trunk@789 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions.php b/wp-includes/template-functions.php index 7103ecf8bf..5ac10fd8bd 100644 --- a/wp-includes/template-functions.php +++ b/wp-includes/template-functions.php @@ -1645,8 +1645,9 @@ function comment_author() { global $comment; $author = stripslashes(stripslashes($comment->comment_author)); $author = apply_filters('comment_auther', $author); + $author = convert_chars($author); if (!empty($author)) { - echo htmlspecialchars($comment->comment_author); + echo $comment->comment_author; } else { echo "Anonymous"; @@ -1664,7 +1665,9 @@ function comment_author_link() { global $comment; $url = trim(stripslashes($comment->comment_author_url)); $email = stripslashes($comment->comment_author_email); - $author = htmlspecialchars(stripslashes($comment->comment_author)); + $author = stripslashes($comment->comment_author); + $author = convert_chars($author); + $author = wptexturize($author); if (empty($author)) { $author = "Anonymous"; }