Fix for foreign language comments.

git-svn-id: https://develop.svn.wordpress.org/trunk@789 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2004-01-24 23:22:31 +00:00
parent b03e33acf4
commit 0ab9b235c5
1 changed files with 5 additions and 2 deletions

View File

@ -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";
}