Fix for foreign language comments.
git-svn-id: http://svn.automattic.com/wordpress/trunk@789 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5b908a99d9
commit
04541968dc
wp-includes
|
@ -1645,8 +1645,9 @@ function comment_author() {
|
||||||
global $comment;
|
global $comment;
|
||||||
$author = stripslashes(stripslashes($comment->comment_author));
|
$author = stripslashes(stripslashes($comment->comment_author));
|
||||||
$author = apply_filters('comment_auther', $author);
|
$author = apply_filters('comment_auther', $author);
|
||||||
|
$author = convert_chars($author);
|
||||||
if (!empty($author)) {
|
if (!empty($author)) {
|
||||||
echo htmlspecialchars($comment->comment_author);
|
echo $comment->comment_author;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
echo "Anonymous";
|
echo "Anonymous";
|
||||||
|
@ -1664,7 +1665,9 @@ function comment_author_link() {
|
||||||
global $comment;
|
global $comment;
|
||||||
$url = trim(stripslashes($comment->comment_author_url));
|
$url = trim(stripslashes($comment->comment_author_url));
|
||||||
$email = stripslashes($comment->comment_author_email);
|
$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)) {
|
if (empty($author)) {
|
||||||
$author = "Anonymous";
|
$author = "Anonymous";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue