fixed bug in comment_author_link.
git-svn-id: https://develop.svn.wordpress.org/trunk@193 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
06cff97569
commit
89310fac44
@ -980,15 +980,18 @@ function comment_author_link() {
|
|||||||
|
|
||||||
$url = str_replace('http://url', '', $url);
|
$url = str_replace('http://url', '', $url);
|
||||||
|
|
||||||
if (empty($url) && empty($email)) return $author;
|
if (empty($url) && empty($email)) {
|
||||||
|
echo $author;
|
||||||
|
return;
|
||||||
|
}
|
||||||
echo '<a href="';
|
echo '<a href="';
|
||||||
if ($url) {
|
if ($url) {
|
||||||
$url = str_replace(';//', '://', $url);
|
$url = str_replace(';//', '://', $url);
|
||||||
$url = (!strstr($url, '://')) ? 'http://'.$url : $url;
|
$url = (!strstr($url, '://')) ? 'http://'.$url : $url;
|
||||||
$url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);
|
$url = preg_replace('/&([^#])(?![a-z]{2,8};)/', '&$1', $url);
|
||||||
echo $url;
|
else echo $url;
|
||||||
} else {
|
} else {
|
||||||
echo antispambot($email);
|
echo 'mailto:'.$email;
|
||||||
}
|
}
|
||||||
echo '" rel="external">' . $author . '</a>';
|
echo '" rel="external">' . $author . '</a>';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user