mirror of
https://github.com/WordPress/WordPress.git
synced 2024-10-01 08:37:55 +02:00
removed email links from comment authors
git-svn-id: http://svn.automattic.com/wordpress/trunk@1024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
97d8381691
commit
454b3cb0a9
@ -121,7 +121,6 @@ function comment_author_email() {
|
|||||||
function comment_author_link() {
|
function comment_author_link() {
|
||||||
global $comment;
|
global $comment;
|
||||||
$url = apply_filters('comment_url', $comment->comment_author_url);
|
$url = apply_filters('comment_url', $comment->comment_author_url);
|
||||||
$email = apply_filters('comment_email', $comment->comment_author_email);
|
|
||||||
$author = apply_filters('comment_author', $comment->comment_author);
|
$author = apply_filters('comment_author', $comment->comment_author);
|
||||||
|
|
||||||
if (empty($url) && empty($email)) {
|
if (empty($url) && empty($email)) {
|
||||||
@ -132,8 +131,6 @@ function comment_author_link() {
|
|||||||
echo '<a href="';
|
echo '<a href="';
|
||||||
if ($url) {
|
if ($url) {
|
||||||
echo $url;
|
echo $url;
|
||||||
} else {
|
|
||||||
echo "mailto:$email";
|
|
||||||
}
|
}
|
||||||
echo '" rel="external">' . $author . '</a>';
|
echo '" rel="external">' . $author . '</a>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user