summaryrefslogtreecommitdiffstats
path: root/wp-inst/wp-includes/comment-functions.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-07 09:22:04 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2005-11-07 09:22:04 +0000
commit2deb7ed927ba4f38c7920e1d0fb82a85edc031fd (patch)
tree6e3f9b353a79a10e67602b88be98a274bcc8dfe0 /wp-inst/wp-includes/comment-functions.php
parent99532e55fc2d3de5c265bc36976664d1eedbe2ea (diff)
downloadwordpress-mu-2deb7ed927ba4f38c7920e1d0fb82a85edc031fd.tar.gz
wordpress-mu-2deb7ed927ba4f38c7920e1d0fb82a85edc031fd.tar.xz
wordpress-mu-2deb7ed927ba4f38c7920e1d0fb82a85edc031fd.zip
Massive WP Merge
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@417 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-inst/wp-includes/comment-functions.php')
-rw-r--r--wp-inst/wp-includes/comment-functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-inst/wp-includes/comment-functions.php b/wp-inst/wp-includes/comment-functions.php
index 9e0bf2d..1480e44 100644
--- a/wp-inst/wp-includes/comment-functions.php
+++ b/wp-inst/wp-includes/comment-functions.php
@@ -294,7 +294,7 @@ function comment_ID() {
function get_comment_author() {
global $comment;
if ( empty($comment->comment_author) )
- $author = 'Anonymous';
+ $author = __('Anonymous');
else
$author = $comment->comment_author;
return apply_filters('get_comment_author', $author);
@@ -590,7 +590,7 @@ function pingback($content, $post_ID) {
// We don't wanna ping first and second types, even if they have a valid <link/>
foreach($post_links_temp[0] as $link_test) :
- if ( !in_array($link_test, $pung) ) : // If we haven't pung it already
+ if ( !in_array($link_test, $pung) && url_to_postid($link_test) != $post_ID) : // If we haven't pung it already and it isn't a link to itself
$test = parse_url($link_test);
if (isset($test['query']))
$post_links[] = $link_test;